Class DefaultConnectFuture

    • Constructor Detail

      • DefaultConnectFuture

        public DefaultConnectFuture()
        Creates a new instance.
      • DefaultConnectFuture

        public DefaultConnectFuture​(java.lang.Object lock)
        Creates a new instance which uses the specified object as a lock.
    • Method Detail

      • newFailedFuture

        public static ConnectFuture newFailedFuture​(java.lang.Throwable exception)
        Returns a new ConnectFuture which is already marked as 'failed to connect'.
      • isConnected

        public boolean isConnected()
        Description copied from interface: ConnectFuture
        Returns true if the connect operation is finished successfully.
        Specified by:
        isConnected in interface ConnectFuture
      • setSession

        public void setSession​(IoSession session)
        Description copied from interface: ConnectFuture
        Sets the newly connected session and notifies all threads waiting for this future. This method is invoked by MINA internally. Please do not call this method directly.
        Specified by:
        setSession in interface ConnectFuture
      • setException

        public void setException​(java.lang.Throwable exception)
        Description copied from interface: ConnectFuture
        Sets the exception caught due to connection failure and notifies all threads waiting for this future. This method is invoked by MINA internally. Please do not call this method directly.
        Specified by:
        setException in interface ConnectFuture