Module 
Package org.xnio

Class ChainedChannelListener<T extends java.nio.channels.Channel>

  • 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
    • 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: ChannelListener
        Handle the event on this channel.
        Specified by:
        handleEvent in interface ChannelListener<T extends java.nio.channels.Channel>
        Parameters:
        channel - the channel event