public class DefaultConnectFuture extends DefaultSshFuture<ConnectFuture> implements ConnectFuture
ConnectFuture
.Constructor and Description |
---|
DefaultConnectFuture(Object lock) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Returns the cause of the connection failure.
|
ClientSession |
getSession() |
boolean |
isConnected()
Returns true if the connect operation is finished successfully.
|
void |
setException(Throwable exception)
Sets the exception caught due to connection failure and notifies all
threads waiting for this future.
|
void |
setSession(ClientSession session)
Sets the newly connected session and notifies all threads waiting for
this future.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getValue, isCanceled, isDone, removeListener, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, isCanceled
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
public DefaultConnectFuture(Object lock)
public ClientSession getSession()
getSession
in interface ConnectFuture
public Throwable getException()
ConnectFuture
getException
in interface ConnectFuture
public boolean isConnected()
ConnectFuture
isConnected
in interface ConnectFuture
public void setSession(ClientSession session)
ConnectFuture
setSession
in interface ConnectFuture
public void setException(Throwable exception)
ConnectFuture
setException
in interface ConnectFuture
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.