public class DefaultOpenFuture extends DefaultSshFuture<OpenFuture> implements OpenFuture
OpenFuture.| Constructor and Description |
|---|
DefaultOpenFuture(Object lock) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isOpened()
Returns true if the connect operation is finished successfully.
|
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.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getValue, isCanceled, isDone, removeListener, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCanceledaddListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListenerpublic DefaultOpenFuture(Object lock)
public Throwable getException()
OpenFuturegetException in interface OpenFuturepublic boolean isOpened()
OpenFutureisOpened in interface OpenFuturepublic void setOpened()
OpenFuturesetOpened in interface OpenFuturepublic void setException(Throwable exception)
OpenFuturesetException in interface OpenFutureCopyright © 2008-2012 Apache Software Foundation. All Rights Reserved.