Package com.linecorp.armeria.common
Interface AggregationOptions
An
AggregationOptions to control the aggregation behavior of HttpMessage.-
Method Summary
Modifier and TypeMethodDescriptionalloc()(Advanced users only) Returns theByteBufAllocatorthat can be used to create aPooledObjectswithout making a copy.static AggregationOptionsBuilderbuilder()Returns a newAggregationOptionsBuilder.booleanReturns whether to cache the aggregation result.executor()Returns theEventExecutorthat executes the aggregation.booleanReturns whether to return the cachedAggregatedHttpMessageif there's one.static AggregationOptionsusePooledObjects(ByteBufAllocator alloc) Returns a newAggregationOptionsthat createsPooledObjectswithout making a copy using theByteBufAllocator.static AggregationOptionsusePooledObjects(ByteBufAllocator alloc, EventExecutor executor) Returns a newAggregationOptionsthat createsPooledObjectswithout making a copy using theByteBufAllocator.
-
Method Details
-
builder
Returns a newAggregationOptionsBuilder. -
usePooledObjects
Returns a newAggregationOptionsthat createsPooledObjectswithout making a copy using theByteBufAllocator. -
usePooledObjects
Returns a newAggregationOptionsthat createsPooledObjectswithout making a copy using theByteBufAllocator. The specifiedEventExecutoris used to run the aggregation function. -
executor
Returns theEventExecutorthat executes the aggregation. -
cacheResult
boolean cacheResult()Returns whether to cache the aggregation result. -
preferCached
boolean preferCached()Returns whether to return the cachedAggregatedHttpMessageif there's one. -
alloc
(Advanced users only) Returns theByteBufAllocatorthat can be used to create aPooledObjectswithout making a copy. Ifnull, abyte[]-basedHttpDatais created.PooledObjectscannot be cached since they have their own life cycle. Therefore, ifcacheResult()is set totrue, this method always returnsnull.
-