public class DefaultKeyExchangeFuture extends DefaultVerifiableSshFuture<KeyExchangeFuture> implements KeyExchangeFuture
CANCELED
log
Constructor and Description |
---|
DefaultKeyExchangeFuture(Object lock) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Returns the cause of the exchange failure.
|
KeyExchangeFuture |
verify(long timeoutMillis)
Wait and verify that the operation was successful
|
verify, verify
addListener, await0, cancel, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue
asListener, asT, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, notifyListener, verifyResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone
verify, verify
public DefaultKeyExchangeFuture(Object lock)
public KeyExchangeFuture verify(long timeoutMillis) throws IOException
VerifiableFuture
verify
in interface VerifiableFuture<KeyExchangeFuture>
timeoutMillis
- Wait timeout in millisecondsIOException
- If failed to verify successfully on timepublic 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).Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.