Class IOSessionRequest

  • All Implemented Interfaces:
    java.util.concurrent.Future<IOSession>

    final class IOSessionRequest
    extends java.lang.Object
    implements java.util.concurrent.Future<IOSession>
    • Field Detail

      • remoteAddress

        final java.net.SocketAddress remoteAddress
      • localAddress

        final java.net.SocketAddress localAddress
      • attachment

        final java.lang.Object attachment
      • closeableRef

        private final java.util.concurrent.atomic.AtomicReference<ModalCloseable> closeableRef
    • Constructor Detail

      • IOSessionRequest

        public IOSessionRequest​(NamedEndpoint remoteEndpoint,
                                java.net.SocketAddress remoteAddress,
                                java.net.SocketAddress localAddress,
                                Timeout timeout,
                                java.lang.Object attachment,
                                FutureCallback<IOSession> callback)
    • Method Detail

      • failed

        public void failed​(java.lang.Exception cause)
      • cancel

        public boolean cancel()
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<IOSession>
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<IOSession>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface java.util.concurrent.Future<IOSession>
      • get

        public IOSession get()
                      throws java.lang.InterruptedException,
                             java.util.concurrent.ExecutionException
        Specified by:
        get in interface java.util.concurrent.Future<IOSession>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • get

        public IOSession get​(long timeout,
                             java.util.concurrent.TimeUnit unit)
                      throws java.lang.InterruptedException,
                             java.util.concurrent.ExecutionException,
                             java.util.concurrent.TimeoutException
        Specified by:
        get in interface java.util.concurrent.Future<IOSession>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • toString

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