
T - the channel typepublic static class ChannelListener.SimpleSetter<T extends java.nio.channels.Channel> extends java.lang.Object implements ChannelListener.Setter<T>
ChannelListener.Setter.| Constructor and Description |
|---|
ChannelListener.SimpleSetter() |
| Modifier and Type | Method and Description |
|---|---|
ChannelListener<? super T> |
get()
Get the channel listener set on this setter.
|
void |
set(ChannelListener<? super T> listener)
Set the listener, or
null to ignore the associated event type. |
public void set(ChannelListener<? super T> listener)
null to ignore the associated event type.set in interface ChannelListener.Setter<T extends java.nio.channels.Channel>listener - the new listenerpublic ChannelListener<? super T> get()
Copyright © 2010 JBoss, a division of Red Hat, Inc.