public interface IoConnectFuture extends SshFuture<IoConnectFuture>
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.
|
IoSession |
getSession() |
boolean |
isCanceled() |
boolean |
isConnected() |
void |
setException(Throwable exception)
Sets the exception caught due to connection failure and notifies all
threads waiting for this future.
|
void |
setSession(IoSession session)
Sets the newly connected session and notifies all threads waiting for
this future.
|
addListener, removeListener
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone
IoSession getSession()
IoSession
- may be null
if connect operation not finished yet or attempt has failedgetException()
Throwable getException()
getSession()
boolean isConnected()
boolean isCanceled()
true
if the connect operation has been canceled by
cancel()
method.void setSession(IoSession session)
session
- The connected IoSession
void setException(Throwable exception)
exception
- The caught Throwable
void cancel()
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.