public static class Nio2Connector.DefaultIoConnectFuture extends DefaultSshFuture<IoConnectFuture> implements IoConnectFuture
CANCELEDlog| 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, verifyResultdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, isCanceledaddListener, removeListenerawait, await, await, await, awaitUninterruptibly, 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–2024 The Apache Software Foundation. All rights reserved.