public class DefaultIoConnectFuture extends DefaultCancellableSshFuture<IoConnectFuture> implements IoConnectFuture
IoConnectFuture.log| Constructor and Description |
|---|
DefaultIoConnectFuture(Object id,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
IoSession |
getSession() |
boolean |
isConnected() |
void |
setSession(IoSession session)
Sets the newly connected session and notifies all threads waiting for this future.
|
IoConnectFuture |
verify(long timeoutMillis,
CancelOption... options)
Wait and verify that the operation was successful
|
cancel, createCancellation, getCancellation, getException, isCanceled, setExceptionaddListener, await0, getNumRegisteredListeners, getValue, isDone, notifyListeners, onValueSet, 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, waitaddListener, removeListenerawait, await, await, await, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDonecancel, getCancellation, isCanceledsetExceptiongetExceptionpublic IoSession getSession()
getSession in interface IoConnectFutureIoSession - may be null if connect operation not finished yet or attempt has
failedHasException.getException()public boolean isConnected()
isConnected in interface IoConnectFuturepublic void setSession(IoSession session)
IoConnectFuturesetSession in interface IoConnectFuturesession - The connected IoSessionpublic IoConnectFuture verify(long timeoutMillis, CancelOption... options) throws IOException
VerifiableFutureverify in interface VerifiableFuture<IoConnectFuture>timeoutMillis - Wait timeout in millisecondsoptions - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if
the future is not Cancellable.IOException - If failed to verify successfully on timeCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.