Interface NettyConnectionContext.FlushStrategyProvider
-
- Enclosing interface:
- NettyConnectionContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface NettyConnectionContext.FlushStrategyProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FlushStrategy
computeFlushStrategy(FlushStrategy current, boolean isCurrentOriginal)
Given the currentFlushStrategy
associated with thisNettyConnectionContext
, return a newFlushStrategy
.
-
-
-
Method Detail
-
computeFlushStrategy
FlushStrategy computeFlushStrategy(FlushStrategy current, boolean isCurrentOriginal)
Given the currentFlushStrategy
associated with thisNettyConnectionContext
, return a newFlushStrategy
. This method is expected to be idempotent.- Parameters:
current
- CurrentFlushStrategy
associated with theNettyConnectionContext
.isCurrentOriginal
-true
if the suppliedcurrent
FlushStrategy
is the sameFlushStrategy
that the associatedNettyConnectionContext
was created with. This is useful if the implementations do not wish to override a strategy already updated by another call.- Returns:
FlushStrategy
to use if successfully updated byNettyConnectionContext.updateFlushStrategy(FlushStrategyProvider)
.
-
-