Module 
Package org.xnio

Class ChannelListener.SimpleSetter<T extends java.nio.channels.Channel>

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleSetter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleSetter

        public SimpleSetter()
    • Method Detail

      • set

        public void set​(ChannelListener<? super T> listener)
        Set the listener, or null to ignore the associated event type.
        Specified by:
        set in interface ChannelListener.Setter<T extends java.nio.channels.Channel>
        Parameters:
        listener - the new listener
      • get

        public ChannelListener<? super T> get()
        Get the channel listener set on this setter.
        Returns:
        the channel listener
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object