public class DefaultConnectFuture extends DefaultCancellableSshFuture<ConnectFuture> implements ConnectFuture
ConnectFuture.log| Constructor and Description |
|---|
DefaultConnectFuture(Object id,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
ClientSession |
getSession() |
boolean |
isConnected() |
void |
setSession(ClientSession session)
Sets the newly connected session and notifies all threads waiting for this future.
|
ConnectFuture |
verify(long timeout,
CancelOption... options) |
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, waitgetClientSessionaddListener, removeListenerawait, await, await, await, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneverify, verify, verify, verify, verify, verify, verifygetSessionContextcancel, getCancellation, isCanceledsetExceptiongetExceptionpublic ConnectFuture verify(long timeout, CancelOption... options) throws IOException
If no CancelOptions are given, this behaves as if CancelOption.CANCEL_ON_TIMEOUT and
CancelOption.CANCEL_ON_INTERRUPT were set.
verify in interface VerifiableFuture<ConnectFuture>IOExceptionpublic ClientSession getSession()
getSession in interface SessionHolder<ClientSession>public boolean isConnected()
isConnected in interface ConnectFuturetrue if the connect operation is finished successfully.public void setSession(ClientSession session)
ConnectFuturesetSession in interface ConnectFuturesession - The ClientSessionCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.