Module
Package org.xnio.conduits
Class TerminateHandler.ChannelListenerHandler<C extends Channel & CloseListenerSettable<C>>
java.lang.Object
org.xnio.conduits.TerminateHandler.ChannelListenerHandler<C>
- Type Parameters:
C
- the channel type
- All Implemented Interfaces:
TerminateHandler
- Enclosing interface:
- TerminateHandler
public static class TerminateHandler.ChannelListenerHandler<C extends Channel & CloseListenerSettable<C>>
extends Object
implements TerminateHandler
A terminate handler which calls a channel listener on termination notification.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xnio.conduits.TerminateHandler
TerminateHandler.ChannelListenerHandler<C extends Channel & CloseListenerSettable<C>>, TerminateHandler.ReadyTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Force the front-end channel to close, in response to XNIO worker shutdown.void
Indicate that a previous shutdown request has successfully resulted in termination.
-
Constructor Details
-
ChannelListenerHandler
Construct a new instance.- Parameters:
channel
- the channel to wrap
-
-
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
-
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
-