Module
Package org.xnio.channels
Class AcceptListenerSettable.Setter<C extends java.nio.channels.Channel>
- java.lang.Object
-
- org.xnio.channels.AcceptListenerSettable.Setter<C>
-
- Type Parameters:
C
- the channel type
- All Implemented Interfaces:
ChannelListener.Setter<C>
- Enclosing interface:
- AcceptListenerSettable<C extends java.nio.channels.Channel>
public static class AcceptListenerSettable.Setter<C extends java.nio.channels.Channel> extends java.lang.Object implements ChannelListener.Setter<C>
A channel listener setter implementation which delegates to the appropriate setter method.
-
-
Constructor Summary
Constructors Constructor Description Setter(AcceptListenerSettable<C> settable)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
set(ChannelListener<? super C> listener)
Set the listener, ornull
to ignore the associated event type.
-
-
-
Constructor Detail
-
Setter
public Setter(AcceptListenerSettable<C> settable)
Construct a new instance.- Parameters:
settable
- the settable to delegate to
-
-
Method Detail
-
set
public void set(ChannelListener<? super C> listener)
Description copied from interface:ChannelListener.Setter
Set the listener, ornull
to ignore the associated event type.- Specified by:
set
in interfaceChannelListener.Setter<C extends java.nio.channels.Channel>
- Parameters:
listener
- the new listener
-
-