Package com.linecorp.armeria.common.stream
@NonNullByDefault
package com.linecorp.armeria.common.stream
Streamed message types.
Starting points
-
ClassDescriptionA
RuntimeException
that is raised to signal aSubscriber
that theStreamMessage
it subscribed to has been aborted byStreamMessage.abort()
.A helper class to support caching the aggregated result ofHttpMessage
.AStreamMessage
that publishes bytes withHttpData
.ARuntimeException
that is raised to notifyStreamMessage.whenComplete()
when aSubscriber
has cancelled itsSubscription
.ARuntimeException
that is raised when aStreamMessage
or an HTTP/2 stream has been closed unexpectedly.AStreamMessage
which buffers the elements to be signaled into aQueue
.A default duplicator.AStreamMessage
whose stream is published later by anotherStreamMessage
.AStreamMessage
that filters objects as they are published.HttpDecoder<T>Decodes a stream ofHttpObject
s to N objects.A builder for creating aByteStreamMessage
that reads data from theInputStream
and publishes usingHttpData
.ASubscriber
that discards all elements silently.A builder for creating aByteStreamMessage
that reads data from thePath
and publishes usingHttpData
.Adapts aPublisher
into aStreamMessage
.A function that accepts one signal and produces the length of the signal.StreamDecoder<I,O> Decodes a stream of data to N objects.An input ofStreamDecoder
which is used to read a stream of objects.An output ofStreamDecoder
which holds the decoded data.A duplicator that duplicates aStreamMessage
into one or moreStreamMessage
s, which publish the same elements.A utility class forStreamMessage
.Wraps aStreamMessage
and forwards its method invocations todelegate
.StreamWriter<T>Produces the objects to be published by aStreamMessage
.Options used when subscribing to aStreamMessage
.