Class ManagedSelector.Connect

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object attachment  
      private java.nio.channels.SelectableChannel channel  
      private java.util.concurrent.atomic.AtomicBoolean failed  
      private Scheduler.Task timeout  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • failed

        private final java.util.concurrent.atomic.AtomicBoolean failed
      • channel

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

        private final java.lang.Object attachment
    • Constructor Detail

      • Connect

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

      • run

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

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

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