Package com.linecorp.armeria.common.stream
Streamed message types.
Starting points
-
Interface Summary Interface Description HttpDeframer<T> AProcessor
implementation that decodes a stream ofHttpObject
s to N objects.HttpDeframerHandler<T> AnHttpDeframerHandler
that decodes a stream ofHttpObject
s to N objects.HttpDeframerInput An input ofHttpDeframer
which is used to read a stream ofHttpData
.HttpDeframerOutput<T> An output ofHttpDeframer
which holds the decoded data.SignalLengthGetter<T> A function that accepts one signal and produces the length of the signal.StreamMessage<T> StreamMessageDuplicator<T> A duplicator that duplicates aStreamMessage
into one or moreStreamMessage
s, which publish the same elements.StreamWriter<T> Produces the objects to be published by aStreamMessage
. -
Class Summary Class Description DefaultStreamMessage<T> AStreamMessage
which buffers the elements to be signaled into aQueue
.DefaultStreamMessageDuplicator<T> A default duplicator.DeferredStreamMessage<T> AStreamMessage
whose stream is published later by anotherStreamMessage
.EmptyFixedStreamMessage<T> AFixedStreamMessage
that publishes no objects, just a close event.FilteredStreamMessage<T,U> AStreamMessage
that filters objects as they are published.NoopSubscriber<T> ASubscriber
that discards all elements silently.OneElementFixedStreamMessage<T> AFixedStreamMessage
that only publishes one object.PublisherBasedStreamMessage<T> Adapts aPublisher
into aStreamMessage
.RegularFixedStreamMessage<T> AFixedStreamMessage
that publishes an arbitrary number of objects.StreamMessageWrapper<T> Wraps aStreamMessage
and forwards its method invocations todelegate
.TwoElementFixedStreamMessage<T> AFixedStreamMessage
that publishes two objects. -
Enum Summary Enum Description SubscriptionOption Options used when subscribing to aStreamMessage
. -
Exception Summary Exception Description AbortedStreamException ARuntimeException
that is raised to signal aSubscriber
that theStreamMessage
it subscribed to has been aborted byStreamMessage.abort()
.CancelledSubscriptionException ARuntimeException
that is raised to notifyStreamMessage.whenComplete()
when aSubscriber
has cancelled itsSubscription
.ClosedStreamException ARuntimeException
that is raised when aStreamMessage
has been closed unexpectedly.