java.lang.Object
org.xnio.ChannelListener.SimpleSetter<T>
- Type Parameters:
T
- the channel type
- All Implemented Interfaces:
ChannelListener.Setter<T>
- Enclosing interface:
- ChannelListener<T extends Channel>
public static class ChannelListener.SimpleSetter<T extends Channel>
extends Object
implements ChannelListener.Setter<T>
A simple implementation of
ChannelListener.Setter
.- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChannelListener<? super T>
get()
Get the channel listener set on this setter.void
set
(ChannelListener<? super T> listener) Set the listener, ornull
to ignore the associated event type.toString()
-
Constructor Details
-
SimpleSetter
public SimpleSetter()
-
-
Method Details
-
set
Set the listener, ornull
to ignore the associated event type.- Specified by:
set
in interfaceChannelListener.Setter<T extends Channel>
- Parameters:
listener
- the new listener
-
get
Get the channel listener set on this setter.- Returns:
- the channel listener
-
toString
-