Package com.linecorp.armeria.common.stream
@NonNullByDefault
package com.linecorp.armeria.common.stream
Streamed message types.
Starting points
-
InterfaceDescriptionHttpDecoder<T>Decodes a stream of
HttpObject
s to N objects.An input ofHttpDecoder
which is used to read a stream ofHttpData
.An output ofHttpDecoder
which holds the decoded data.A function that accepts one signal and produces the length of the signal.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
. -
ClassDescriptionA
StreamMessage
which buffers the elements to be signaled into aQueue
.A default duplicator.AStreamMessage
whose stream is published later by anotherStreamMessage
.AFixedStreamMessage
that publishes no objects, just a close event.FilteredStreamMessage<T,U>AStreamMessage
that filters objects as they are published.ASubscriber
that discards all elements silently.AFixedStreamMessage
that only publishes one object.Adapts aPublisher
into aStreamMessage
.AFixedStreamMessage
that publishes an arbitrary number of objects.Wraps aStreamMessage
and forwards its method invocations todelegate
.AFixedStreamMessage
that publishes three objects.AFixedStreamMessage
that publishes two objects. -
ExceptionDescriptionA
RuntimeException
that is raised to signal aSubscriber
that theStreamMessage
it subscribed to has been aborted byStreamMessage.abort()
.ARuntimeException
that is raised to notifyStreamMessage.whenComplete()
when aSubscriber
has cancelled itsSubscription
.ARuntimeException
that is raised when aStreamMessage
has been closed unexpectedly.