Class ManagedSelector.Accept

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object attachment  
      private java.nio.channels.SelectableChannel channel  
      private java.nio.channels.SelectionKey key  
    • Constructor Summary

      Constructors 
      Constructor Description
      Accept​(java.nio.channels.SelectableChannel channel, java.lang.Object attachment)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void failed​(java.lang.Throwable failure)  
      void run()  
      java.lang.String toString()  
      void update​(java.nio.channels.Selector selector)  
      • Methods inherited from class java.lang.Object

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

      • channel

        private final java.nio.channels.SelectableChannel channel
      • attachment

        private final java.lang.Object attachment
      • key

        private java.nio.channels.SelectionKey key
    • Constructor Detail

      • Accept

        Accept​(java.nio.channels.SelectableChannel channel,
               java.lang.Object attachment)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • failed

        protected void failed​(java.lang.Throwable failure)
      • toString

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