Package org.xnio.conduits
Class ReadReadyHandler.ChannelListenerHandler<C extends SuspendableReadChannel & ReadListenerSettable<C> & CloseListenerSettable<C>>
java.lang.Object
org.xnio.conduits.ReadReadyHandler.ChannelListenerHandler<C>
- Type Parameters:
C
- the channel type
- All Implemented Interfaces:
ReadReadyHandler
,TerminateHandler
- Enclosing interface:
ReadReadyHandler
public static class ReadReadyHandler.ChannelListenerHandler<C extends SuspendableReadChannel & ReadListenerSettable<C> & CloseListenerSettable<C>>
extends Object
implements ReadReadyHandler
A read ready handler which calls channel listener(s).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xnio.conduits.ReadReadyHandler
ReadReadyHandler.ChannelListenerHandler<C extends SuspendableReadChannel & ReadListenerSettable<C> & CloseListenerSettable<C>>, ReadReadyHandler.ReadyTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Force the front-end channel to close, in response to XNIO worker shutdown.void
Signify that reads are ready.void
Indicate that a previous shutdown request has successfully resulted in termination.
-
Constructor Details
-
ChannelListenerHandler
Construct a new instance.- Parameters:
channel
- the channel
-
-
Method Details
-
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
-
readReady
public void readReady()Description copied from interface:ReadReadyHandler
Signify that reads are ready.- Specified by:
readReady
in interfaceReadReadyHandler
-
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
-