public static class Nio2Connector.DefaultIoConnectFuture extends DefaultSshFuture<IoConnectFuture> implements IoConnectFuture
CANCELEDlog| Constructor and Description |
|---|
DefaultIoConnectFuture(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, setValueasListener, asT, await, awaitUninterruptibly, notifyListener, verifyResultgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCanceledaddListener, removeListenerawait, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDonepublic DefaultIoConnectFuture(Object lock)
public 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 IoConnectFutureIoConnectFuture.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–2017 The Apache Software Foundation. All rights reserved.