-
- Type Parameters:
T
- the channel type
- All Known Implementing Classes:
AcceptListenerSettable.Setter
,ChannelListener.SimpleSetter
,CloseListenerSettable.Setter
,ReadListenerSettable.Setter
,WriteListenerSettable.Setter
- Enclosing interface:
- ChannelListener<T extends java.nio.channels.Channel>
public static interface ChannelListener.Setter<T extends java.nio.channels.Channel>
A setter for a channel listener. The indirection is necessary because while covariance is supported on return types, contravariance is not supported on parameters.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
set(ChannelListener<? super T> listener)
Set the listener, ornull
to ignore the associated event type.
-
-
-
Method Detail
-
set
void set(ChannelListener<? super T> listener)
Set the listener, ornull
to ignore the associated event type.- Parameters:
listener
- the new listener
-
-