Class AbstractPollingIoConnector.ConnectionRequest

    • Constructor Detail

      • ConnectionRequest

        public ConnectionRequest​(H handle,
                                 IoSessionInitializer<? extends ConnectFuture> callback)
        Creates a new ConnectionRequest instance
        Parameters:
        handle - The IoHander
        callback - The IoFuture callback
    • Method Detail

      • getHandle

        public H getHandle()
        Returns:
        The IoHandler instance
      • getDeadline

        public long getDeadline()
        Returns:
        The connection deadline
      • cancel

        public boolean cancel()
        Cancels the connection attempt and notifies all threads waiting for this future.
        Specified by:
        cancel in interface ConnectFuture
        Overrides:
        cancel in class DefaultConnectFuture
        Returns:
        true if the future has been cancelled by this call, false if the future was already cancelled.