org.apache.sshd.common.future
Class DefaultCloseFuture
java.lang.Object
org.apache.sshd.common.future.DefaultSshFuture<CloseFuture>
org.apache.sshd.common.future.DefaultCloseFuture
- All Implemented Interfaces:
- CloseFuture, SshFuture<CloseFuture>
public class DefaultCloseFuture
- extends DefaultSshFuture<CloseFuture>
- implements CloseFuture
A default implementation of CloseFuture
.
- Author:
- Apache MINA SSHD Project
Method Summary |
boolean |
isClosed()
Returns true if the close request is finished and the target is closed. |
void |
setClosed()
Marks this future as closed and notifies all threads waiting for this
future. |
Methods inherited from class org.apache.sshd.common.future.DefaultSshFuture |
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getValue, isCanceled, isDone, removeListener, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCloseFuture
public DefaultCloseFuture(Object lock)
- Create a new instance
isClosed
public boolean isClosed()
- Description copied from interface:
CloseFuture
- Returns true if the close request is finished and the target is closed.
- Specified by:
isClosed
in interface CloseFuture
setClosed
public void setClosed()
- Description copied from interface:
CloseFuture
- Marks this future as closed and notifies all threads waiting for this
future. This method is invoked by SSHD internally. Please do not call
this method directly.
- Specified by:
setClosed
in interface CloseFuture
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.