Module
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 java.lang.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 Constructor Description ChannelListenerHandler(C channel)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceTermination()
Force the front-end channel to close, in response to XNIO worker shutdown.void
terminated()
Indicate that a previous shutdown request has successfully resulted in termination.void
writeReady()
Signify that writes are ready.
-
-
-
Constructor Detail
-
ChannelListenerHandler
public ChannelListenerHandler(C channel)
Construct a new instance.- Parameters:
channel
- the channel
-
-
Method Detail
-
forceTermination
public void forceTermination()
Description copied from interface:TerminateHandler
Force the front-end channel to close, in response to XNIO worker shutdown.- Specified by:
forceTermination
in interfaceTerminateHandler
-
writeReady
public void writeReady()
Description copied from interface:WriteReadyHandler
Signify that writes are ready.- Specified by:
writeReady
in interfaceWriteReadyHandler
-
terminated
public void terminated()
Description copied from interface:TerminateHandler
Indicate that a previous shutdown request has successfully resulted in termination.- Specified by:
terminated
in interfaceTerminateHandler
-
-