public static class Nio2Connector.DefaultIoConnectFuture extends DefaultSshFuture<IoConnectFuture> implements IoConnectFuture
CANCELED, debugEnabled, traceEnabledlog| Constructor and Description |
|---|
DefaultIoConnectFuture(Object id,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Returns the cause of the connection failure.
|
IoSession |
getSession() |
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, await0, cancel, getNumRegisteredListeners, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue, toStringasListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResultgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, isCanceledaddListener, removeListenerawait, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDonepublic IoSession getSession()
getSession in interface IoConnectFutureIoSession - may be null
if connect operation not finished yet or attempt has failedIoConnectFuture.getException()public Throwable getException()
IoConnectFuturegetException in interface IoConnectFuturenull if the connect operation is not finished yet,
or if the connection attempt is successful.IoConnectFuture.getSession()public boolean isConnected()
isConnected in interface IoConnectFuturepublic void setSession(IoSession session)
IoConnectFuturesetSession in interface IoConnectFuturesession - The connected IoSessionpublic void setException(Throwable exception)
IoConnectFuturesetException in interface IoConnectFutureexception - The caught ThrowableCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.