Class AggregationSupport
java.lang.Object
com.linecorp.armeria.common.stream.AggregationSupport
- Direct Known Subclasses:
DefaultStreamMessage
,DeferredStreamMessage
,FilteredStreamMessage
,PublisherBasedStreamMessage
,StreamMessageWrapper
A helper class to support caching the aggregated result of
HttpMessage
.
Note that StreamMessage
does not support aggregation because it doesn't know how to aggregate a
stream of arbitrary objects in a StreamMessage
. Although this class is not directly used in
StreamMessage
's API, it is injected on top of StreamMessage
implementations due to the
limitation of the multiple class hierarchy so that all variants of HttpRequest
and
HttpResponse
take advantage of the caching logic in this class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <U extends AggregatedHttpMessage>
CompletableFuture<U>aggregate
(AggregationOptions options)
-
Constructor Details
-
AggregationSupport
protected AggregationSupport()Creates a new instance.
-
-
Method Details
-
aggregate
@UnstableApi protected <U extends AggregatedHttpMessage> CompletableFuture<U> aggregate(AggregationOptions options) Aggregates anHttpMessage
into anAggregatedHttpMessage
using the specifiedAggregationOptions
.Note that this method is added for internal usage. Therefore, you must not override or call this method if you are not familiar with Armeria's internal implementation.
-