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.
-
Method Summary
Modifier and TypeMethodDescriptioncomputeFlushStrategy
(FlushStrategy current, boolean isCurrentOriginal) Given the currentFlushStrategy
associated with thisNettyConnectionContext
, return a newFlushStrategy
.
-
Method Details
-
computeFlushStrategy
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)
.
-