- java.lang.Object
-
- org.xnio.ChainedChannelListener<T>
-
- All Implemented Interfaces:
java.util.EventListener,ChannelListener<T>
public final class ChainedChannelListener<T extends java.nio.channels.Channel> extends java.lang.Object implements ChannelListener<T>
A channel listener that chains calls to a number of other channel listeners.- Author:
- David M. Lloyd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xnio.ChannelListener
ChannelListener.Setter<T extends java.nio.channels.Channel>, ChannelListener.SimpleSetter<T extends java.nio.channels.Channel>
-
-
Constructor Summary
Constructors Constructor Description ChainedChannelListener(ChannelListener<? super T>... listeners)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(T channel)Handle the event on this channel.
-
-
-
Constructor Detail
-
ChainedChannelListener
public ChainedChannelListener(ChannelListener<? super T>... listeners)
Construct a new instance. The given array will be copied.- Parameters:
listeners- the listeners to chain to
-
-
Method Detail
-
handleEvent
public void handleEvent(T channel)
Description copied from interface:ChannelListenerHandle the event on this channel.- Specified by:
handleEventin interfaceChannelListener<T extends java.nio.channels.Channel>- Parameters:
channel- the channel event
-
-