Package org.xnio.channels
Class WriteListenerSettable.Setter<C extends Channel>
java.lang.Object
org.xnio.channels.WriteListenerSettable.Setter<C>
- Type Parameters:
C
- the channel type
- All Implemented Interfaces:
ChannelListener.Setter<C>
- Enclosing interface:
WriteListenerSettable<C extends Channel>
public static class WriteListenerSettable.Setter<C extends Channel>
extends Object
implements ChannelListener.Setter<C>
A channel listener setter implementation which delegates to the appropriate setter method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
set
(ChannelListener<? super C> listener) Set the listener, ornull
to ignore the associated event type.
-
Constructor Details
-
Setter
Construct a new instance.- Parameters:
settable
- the settable to delegate to
-
-
Method Details
-
set
Description copied from interface:ChannelListener.Setter
Set the listener, ornull
to ignore the associated event type.- Specified by:
set
in interfaceChannelListener.Setter<C extends Channel>
- Parameters:
listener
- the new listener
-