public class DefaultCloseFuture extends DefaultSshFuture<CloseFuture> implements CloseFuture
CloseFuture
.CANCELED
log
Constructor and Description |
---|
DefaultCloseFuture(java.lang.Object id,
java.lang.Object lock)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
isClosed() |
void |
setClosed()
Marks this future as closed and notifies all threads waiting for this future.
|
addListener, await0, cancel, getNumRegisteredListeners, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue, toString
asListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResult
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, removeListener
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
public DefaultCloseFuture(java.lang.Object id, java.lang.Object lock)
id
- Some identifier useful as toString()
valuelock
- A synchronization object for locking access - if null
then synchronization occurs on
this
instancepublic boolean isClosed()
isClosed
in interface CloseFuture
public void setClosed()
CloseFuture
setClosed
in interface CloseFuture