Class DefaultOpenFuture

All Implemented Interfaces:
OpenFuture, Cancellable, SshFuture<OpenFuture>, VerifiableFuture<OpenFuture>, WaitableFuture, WithException

public class DefaultOpenFuture extends DefaultCancellableSshFuture<OpenFuture> implements OpenFuture
A default implementation of OpenFuture.
Author:
Apache MINA SSHD Project
  • Constructor Details

    • DefaultOpenFuture

      public DefaultOpenFuture(Object id, Object lock)
  • Method Details

    • verify

      public OpenFuture verify(long timeoutMillis, CancelOption... options) throws IOException
      Specified by:
      verify in interface VerifiableFuture<OpenFuture>
      Throws:
      IOException
    • isOpened

      public boolean isOpened()
      Specified by:
      isOpened in interface OpenFuture
      Returns:
      true if the connect operation is finished successfully.
    • setOpened

      public void setOpened()
      Description copied from interface: OpenFuture
      Sets the newly connected session and notifies all threads waiting for this future. This method is invoked by SSHD internally. Please do not call this method directly.
      Specified by:
      setOpened in interface OpenFuture