public class DefaultKeyExchangeFuture extends DefaultVerifiableSshFuture<KeyExchangeFuture> implements KeyExchangeFuture
log| Constructor and Description |
|---|
DefaultKeyExchangeFuture(Object id,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Returns the cause of the exchange failure.
|
KeyExchangeFuture |
verify(long timeoutMillis,
CancelOption... options)
Wait and verify that the operation was successful
|
addListener, await0, createCancellation, getNumRegisteredListeners, getValue, isDone, notifyListeners, onValueSet, removeListener, setValue, toStringasListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResultdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, removeListenerawait, await, await, await, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDonepublic KeyExchangeFuture verify(long timeoutMillis, CancelOption... options) throws IOException
VerifiableFutureverify in interface VerifiableFuture<KeyExchangeFuture>timeoutMillis - Wait timeout in millisecondsoptions - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.IOException - If failed to verify successfully on timepublic Throwable getException()
KeyExchangeFuturegetException in interface KeyExchangeFuturenull if the exchange operation is not finished yet, or if the connection attempt is successful
(use WaitableFuture.isDone() to distinguish between the two).Copyright © 2008–2025 The Apache Software Foundation. All rights reserved.