Package org.xnio.conduits
Class WriteReadyHandler.ChannelListenerHandler<C extends SuspendableWriteChannel & WriteListenerSettable<C> & CloseListenerSettable<C>>
java.lang.Object
org.xnio.conduits.WriteReadyHandler.ChannelListenerHandler<C>
- Type Parameters:
C- the channel type
- All Implemented Interfaces:
TerminateHandler,WriteReadyHandler
- Enclosing interface:
- WriteReadyHandler
public static class WriteReadyHandler.ChannelListenerHandler<C extends SuspendableWriteChannel & WriteListenerSettable<C> & CloseListenerSettable<C>>
extends Object
implements WriteReadyHandler
A write ready handler which calls channel listener(s).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xnio.conduits.WriteReadyHandler
WriteReadyHandler.ChannelListenerHandler<C extends SuspendableWriteChannel & WriteListenerSettable<C> & CloseListenerSettable<C>>, WriteReadyHandler.ReadyTask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidForce the front-end channel to close, in response to XNIO worker shutdown.voidIndicate that a previous shutdown request has successfully resulted in termination.voidSignify that writes are ready.
-
Constructor Details
-
ChannelListenerHandler
Construct a new instance.- Parameters:
channel- the channel
-
-
Method Details
-
forceTermination
public void forceTermination()Description copied from interface:TerminateHandlerForce the front-end channel to close, in response to XNIO worker shutdown.- Specified by:
forceTerminationin interfaceTerminateHandler
-
writeReady
public void writeReady()Description copied from interface:WriteReadyHandlerSignify that writes are ready.- Specified by:
writeReadyin interfaceWriteReadyHandler
-
terminated
public void terminated()Description copied from interface:TerminateHandlerIndicate that a previous shutdown request has successfully resulted in termination.- Specified by:
terminatedin interfaceTerminateHandler
-