Class AggregationSupport

java.lang.Object
com.linecorp.armeria.common.stream.AggregationSupport
Direct Known Subclasses:
DefaultStreamMessage, DeferredStreamMessage, FilteredStreamMessage, PublisherBasedStreamMessage, StreamMessageWrapper

@UnstableApi public abstract class AggregationSupport extends Object
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.