Class DelegatingFlushStrategy
java.lang.Object
io.servicetalk.transport.netty.internal.DelegatingFlushStrategy
- All Implemented Interfaces:
FlushStrategy
Deprecated.
this class will be made package-private in the future releases. If you depend on this code, consider
copying it into your codebase.
A
FlushStrategy implementation that delegates all calls to another FlushStrategy.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.transport.netty.internal.FlushStrategy
FlushStrategy.FlushSender, FlushStrategy.WriteEventsListener -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingFlushStrategy(FlushStrategy delegate) Deprecated.Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionapply(FlushStrategy.FlushSender sender) Deprecated.Every time a new write that requires custom flushes is initiated, this method is invoked.protected FlushStrategydelegate()Deprecated.Returns the delegateFlushStrategyused.booleanDeprecated.Returnstrueif pending writes, if any, MUST be flushed when the connection is not writable.
-
Constructor Details
-
DelegatingFlushStrategy
Deprecated.Create a new instance.- Parameters:
delegate-FlushStrategyto delegate all calls.
-
-
Method Details
-
apply
Deprecated.Description copied from interface:FlushStrategyEvery time a new write that requires custom flushes is initiated, this method is invoked. PassedFlushStrategy.FlushSenderis used tosignalto the connection that writes should now be flushed.- Specified by:
applyin interfaceFlushStrategy- Parameters:
sender-FlushStrategy.FlushSenderto signal flushes to the connection.- Returns:
FlushStrategy.WriteEventsListenerthat would listen to write events on the connection for which custom flushes are required.
-
shouldFlushOnUnwritable
public boolean shouldFlushOnUnwritable()Deprecated.Description copied from interface:FlushStrategyReturnstrueif pending writes, if any, MUST be flushed when the connection is not writable.This method is expected to be idempotent.
- Specified by:
shouldFlushOnUnwritablein interfaceFlushStrategy- Returns:
trueif pending writes, if any, MUST be flushed when the connection is not writable.
-
delegate
Deprecated.Returns the delegateFlushStrategyused.- Returns:
- The delegate
FlushStrategyused.
-