@FunctionalInterface
public static interface NettyConnectionContext.FlushStrategyProvider
| Modifier and Type | Method and Description |
|---|---|
FlushStrategy |
computeFlushStrategy(FlushStrategy current,
boolean isCurrentOriginal)
Given the current
FlushStrategy associated with this NettyConnectionContext, return a new
FlushStrategy. |
FlushStrategy computeFlushStrategy(FlushStrategy current, boolean isCurrentOriginal)
FlushStrategy associated with this NettyConnectionContext, return a new
FlushStrategy. This method is expected to be idempotent.current - Current FlushStrategy associated with the NettyConnectionContext.isCurrentOriginal - true if the supplied current FlushStrategy is the same
FlushStrategy that the associated NettyConnectionContext was created with. This is useful if
the implementations do not wish to override a strategy already updated by another call.FlushStrategy to use if successfully updated by
NettyConnectionContext.updateFlushStrategy(FlushStrategyProvider).