Package com.linecorp.armeria.common.stream
Streamed message types.
Starting points
-
Interface Summary Interface Description SignalLengthGetter<T> A function that accepts one signal and produces the length of the signal.StreamMessage<T> StreamWriter<T> Produces the objects to be published by aStreamMessage
. -
Class Summary Class Description AbstractStreamMessageDuplicator<T,U extends StreamMessage<T>> Allows subscribing to aStreamMessage
multiple times by duplicating the stream.DefaultStreamMessage<T> AStreamMessage
which buffers the elements to be signaled into aQueue
.DeferredStreamMessage<T> AStreamMessage
whose stream is published later by anotherStreamMessage
.EmptyFixedStreamMessage<T> AFixedStreamMessage
that publishes no objects, just a close event.EventLoopStreamMessage<T> AStreamMessage
optimized for when writes and reads all happen on the providedEventLoop
, removing the need for most synchronization from the hot path.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. -
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.completionFuture()
when aSubscriber
has cancelled itsSubscription
.ClosedPublisherException ARuntimeException
that is raised when aStreamWriter
attempts to write an object to a closedStreamMessage
.