| Package | Description |
|---|---|
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.common.stream |
Streamed message types.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpRequest
A streamed HTTP/2
Request. |
interface |
HttpRequestWriter
An
HttpRequest that can have HttpObjects written to it. |
interface |
HttpResponse
A streamed HTTP/2
Response. |
interface |
HttpResponseWriter
An
HttpResponse that can have HttpObjects written to it. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultHttpRequest
Deprecated.
|
class |
DefaultHttpResponse
Deprecated.
|
class |
DeferredHttpResponse
Deprecated.
|
class |
FilteredHttpRequest
An
HttpRequest that filters objects as they are published. |
class |
FilteredHttpResponse
An
HttpResponse that filters objects as they are published. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultStreamMessage<T>
A
StreamMessage which buffers the elements to be signaled into a Queue. |
class |
DeferredStreamMessage<T>
A
StreamMessage whose stream is published later by another StreamMessage. |
class |
EmptyFixedStreamMessage<T>
A
FixedStreamMessage that publishes no objects, just a close event. |
class |
FilteredStreamMessage<T,U>
A
StreamMessage that filters objects as they are published. |
class |
OneElementFixedStreamMessage<T>
A
FixedStreamMessage that only publishes one object. |
class |
PublisherBasedStreamMessage<T>
Adapts a
Publisher into a StreamMessage. |
class |
RegularFixedStreamMessage<T>
A
FixedStreamMessage that publishes an arbitrary number of objects. |
class |
StreamMessageWrapper<T>
Wraps a
StreamMessage and forwards its method invocations to delegate. |
class |
TwoElementFixedStreamMessage<T>
A
FixedStreamMessage that publishes two objects. |
| Modifier and Type | Method and Description |
|---|---|
protected StreamMessage<? extends T> |
StreamMessageWrapper.delegate()
Returns the
StreamMessage being decorated. |
StreamMessage<T> |
StreamMessageDuplicator.duplicate()
Returns a new
StreamMessage that publishes the same elements as the StreamMessage
that this duplicator is created from. |
StreamMessage<T> |
DefaultStreamMessageDuplicator.duplicate() |
static <T> StreamMessage<T> |
StreamMessage.of()
Creates a new
StreamMessage that will publish no objects, just a close event. |
static <T> StreamMessage<T> |
StreamMessage.of(T... objs)
Creates a new
StreamMessage that will publish the given objs. |
static <T> StreamMessage<T> |
StreamMessage.of(T obj)
Creates a new
StreamMessage that will publish the single obj. |
static <T> StreamMessage<T> |
StreamMessage.of(T obj1,
T obj2)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DeferredStreamMessage.delegate(StreamMessage<T> delegate)
Sets the delegate
StreamMessage which will actually publish the stream. |
| Constructor and Description |
|---|
DefaultStreamMessageDuplicator(StreamMessage<T> upstream,
SignalLengthGetter<? super T> signalLengthGetter,
io.netty.util.concurrent.EventExecutor executor,
long maxSignalLength)
Creates a new instance.
|
FilteredStreamMessage(StreamMessage<T> delegate)
Creates a new
FilteredStreamMessage that filters objects published by delegate
before passing to a subscriber. |
FilteredStreamMessage(StreamMessage<T> delegate,
boolean withPooledObjects)
Creates a new
FilteredStreamMessage that filters objects published by delegate
before passing to a subscriber. |
StreamMessageWrapper(StreamMessage<? extends T> delegate)
Creates a new instance that wraps a
delegate. |
Copyright © 2020 LeanCloud. All rights reserved.