- 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 Channel>
public static interface ChannelListener.Setter<T extends 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
Modifier and TypeMethodDescriptionvoidset(ChannelListener<? super T> listener) Set the listener, ornullto ignore the associated event type.
-
Method Details
-
set
Set the listener, ornullto ignore the associated event type.- Parameters:
listener- the new listener
-