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 FlushStrategycomputeFlushStrategy(FlushStrategy current, boolean isCurrentOriginal)Given the currentFlushStrategyassociated with thisNettyConnectionContext, return a newFlushStrategy.
-
-
-
Method Detail
-
computeFlushStrategy
FlushStrategy computeFlushStrategy(FlushStrategy current, boolean isCurrentOriginal)
Given the currentFlushStrategyassociated with thisNettyConnectionContext, return a newFlushStrategy. This method is expected to be idempotent.- Parameters:
current- CurrentFlushStrategyassociated with theNettyConnectionContext.isCurrentOriginal-trueif the suppliedcurrentFlushStrategyis the sameFlushStrategythat the associatedNettyConnectionContextwas created with. This is useful if the implementations do not wish to override a strategy already updated by another call.- Returns:
FlushStrategyto use if successfully updated byNettyConnectionContext.updateFlushStrategy(FlushStrategyProvider).
-
-