public interface OpenFuture extends SshFuture<OpenFuture>
SshFuture
for asynchronous channel opening requests.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the connection attempt and notifies all threads waiting for
this future.
|
Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isCanceled()
Returns
true if the connect operation has been canceled by
cancel() method. |
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, isDone, removeListener
Throwable getException()
boolean isOpened()
boolean isCanceled()
true
if the connect operation has been canceled by
cancel()
method.void setOpened()
void setException(Throwable exception)
void cancel()
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.