public interface ConnectFuture extends SshFuture<ConnectFuture>
SshFuture for asynchronous connections requests.| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the connection attempt and notifies all threads waiting for
this future.
|
java.lang.Throwable |
getException()
Returns the cause of the connection failure.
|
ClientSession |
getSession() |
boolean |
isCanceled()
Returns
true if the connect operation has been canceled by
cancel() method. |
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, isDone, removeListenerClientSession getSession()
java.lang.Throwable getException()
boolean isConnected()
boolean isCanceled()
true if the connect operation has been canceled by
cancel() method.void setSession(ClientSession session)
void setException(java.lang.Throwable exception)
void cancel()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.