Class DefaultKeyExchangeFuture

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.future.AbstractSshFuture<KeyExchangeFuture>
org.apache.sshd.common.future.DefaultSshFuture<KeyExchangeFuture>
org.apache.sshd.common.future.DefaultVerifiableSshFuture<KeyExchangeFuture>
org.apache.sshd.common.future.DefaultKeyExchangeFuture
All Implemented Interfaces:
KeyExchangeFuture, org.apache.sshd.common.future.SshFuture<KeyExchangeFuture>, org.apache.sshd.common.future.VerifiableFuture<KeyExchangeFuture>, org.apache.sshd.common.future.WaitableFuture

public class DefaultKeyExchangeFuture extends org.apache.sshd.common.future.DefaultVerifiableSshFuture<KeyExchangeFuture> implements KeyExchangeFuture
Author:
Apache MINA SSHD Project
  • Field Summary

    Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the cause of the exchange failure.
    verify(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options)
     

    Methods inherited from class org.apache.sshd.common.future.DefaultSshFuture

    addListener, await0, createCancellation, getNumRegisteredListeners, getValue, isDone, notifyListeners, onValueSet, removeListener, setValue, toString

    Methods inherited from class org.apache.sshd.common.future.AbstractSshFuture

    asListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResult

    Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.sshd.common.future.SshFuture

    addListener, removeListener

    Methods inherited from interface org.apache.sshd.common.future.VerifiableFuture

    verify, verify, verify, verify, verify, verify, verify

    Methods inherited from interface org.apache.sshd.common.future.WaitableFuture

    await, await, await, await, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
  • Constructor Details

    • DefaultKeyExchangeFuture

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

    • verify

      public KeyExchangeFuture verify(long timeoutMillis, org.apache.sshd.common.future.CancelOption... options) throws IOException
      Specified by:
      verify in interface org.apache.sshd.common.future.VerifiableFuture<KeyExchangeFuture>
      Throws:
      IOException
    • getException

      public Throwable getException()
      Description copied from interface: KeyExchangeFuture
      Returns the cause of the exchange failure.
      Specified by:
      getException in interface KeyExchangeFuture
      Returns:
      null if the exchange operation is not finished yet, or if the connection attempt is successful (use WaitableFuture.isDone() to distinguish between the two).