public class DefaultOpenFuture extends DefaultVerifiableSshFuture<OpenFuture> implements OpenFuture
OpenFuture.CANCELEDlog| Constructor and Description |
|---|
DefaultOpenFuture(Object id,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isOpened() |
void |
setException(Throwable exception)
Sets the exception caught due to connection failure and notifies all threads waiting for this future.
|
void |
setOpened()
Sets the newly connected session and notifies all threads waiting for this future.
|
OpenFuture |
verify(long timeoutMillis) |
addListener, await0, cancel, getNumRegisteredListeners, getValue, isCanceled, isDone, notifyListeners, 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, waitcancel, isCanceledaddListener, removeListenerawait, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneverify, verify, verifypublic OpenFuture verify(long timeoutMillis) throws IOException
verify in interface VerifiableFuture<OpenFuture>IOExceptionpublic Throwable getException()
OpenFuturegetException in interface OpenFuturenull if the connect operation is not finished yet, or if the connection attempt is successful
(use WaitableFuture.isDone() to distinguish between the two).public boolean isOpened()
isOpened in interface OpenFuturetrue if the connect operation is finished successfully.public void setOpened()
OpenFuturesetOpened in interface OpenFuturepublic void setException(Throwable exception)
OpenFuturesetException in interface OpenFutureexception - The caught ThrowableCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.