public class DefaultConnectFuture extends DefaultSshFuture<ConnectFuture> implements ConnectFuture
ConnectFuture.| Constructor and Description |
|---|
DefaultConnectFuture(java.lang.Object lock) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getException()
Returns the cause of the connection failure.
|
ClientSession |
getSession() |
boolean |
isConnected()
Returns true if the connect operation is finished successfully.
|
void |
setException(java.lang.Throwable exception)
Sets the exception caught due to connection failure and notifies all
threads waiting for this future.
|
void |
setSession(ClientSession session)
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 ClientSession getSession()
getSession in interface ConnectFuturepublic java.lang.Throwable getException()
ConnectFuturegetException in interface ConnectFuturepublic boolean isConnected()
ConnectFutureisConnected in interface ConnectFuturepublic void setSession(ClientSession session)
ConnectFuturesetSession in interface ConnectFuturepublic void setException(java.lang.Throwable exception)
ConnectFuturesetException in interface ConnectFutureCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.