public class DefaultOpenFuture extends DefaultSshFuture<OpenFuture> implements OpenFuture
OpenFuture
.Constructor and Description |
---|
DefaultOpenFuture(Object lock) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isOpened()
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 |
setOpened()
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 DefaultOpenFuture(Object lock)
public Throwable getException()
OpenFuture
getException
in interface OpenFuture
public boolean isOpened()
OpenFuture
isOpened
in interface OpenFuture
public void setOpened()
OpenFuture
setOpened
in interface OpenFuture
public void setException(Throwable exception)
OpenFuture
setException
in interface OpenFuture
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.