public class DefaultKeyExchangeFuture extends DefaultVerifiableSshFuture<KeyExchangeFuture> implements KeyExchangeFuture
CANCELED
log
Constructor and Description |
---|
DefaultKeyExchangeFuture(java.lang.Object id,
java.lang.Object lock) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getException()
Returns the cause of the exchange failure.
|
KeyExchangeFuture |
verify(long timeoutMillis)
Wait and verify that the operation was successful
|
addListener, await0, cancel, getNumRegisteredListeners, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue, toString
asListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResult
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, removeListener
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
verify, verify, verify
public DefaultKeyExchangeFuture(java.lang.Object id, java.lang.Object lock)
public KeyExchangeFuture verify(long timeoutMillis) throws java.io.IOException
VerifiableFuture
verify
in interface VerifiableFuture<KeyExchangeFuture>
timeoutMillis
- Wait timeout in millisecondsjava.io.IOException
- If failed to verify successfully on timepublic java.lang.Throwable getException()
KeyExchangeFuture
getException
in interface KeyExchangeFuture
null
if the exchange operation is not finished yet, or if the connection attempt is successful
(use WaitableFuture.isDone()
to distinguish between the two).