java.lang.Object
org.xnio.ChainedChannelListener<T>
- All Implemented Interfaces:
EventListener,ChannelListener<T>
public final class ChainedChannelListener<T extends Channel>
extends 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 Channel>, ChannelListener.SimpleSetter<T extends Channel> -
Constructor Summary
ConstructorsConstructorDescriptionChainedChannelListener(ChannelListener<? super T>... listeners) Construct a new instance. -
Method Summary
-
Constructor Details
-
ChainedChannelListener
Construct a new instance. The given array will be copied.- Parameters:
listeners- the listeners to chain to
-
-
Method Details
-
handleEvent
Description copied from interface:ChannelListenerHandle the event on this channel.- Specified by:
handleEventin interfaceChannelListener<T extends Channel>- Parameters:
channel- the channel event
-