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 |
---|
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. |
java.lang.String |
toString() |
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()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 JBoss, a division of Red Hat, Inc.