org.apache.sshd.common.future
Class DefaultCloseFuture

java.lang.Object
  extended by org.apache.sshd.common.future.DefaultSshFuture<CloseFuture>
      extended by 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

Constructor Summary
DefaultCloseFuture(Object lock)
          Create a new instance
 
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
 
Methods inherited from interface org.apache.sshd.common.future.SshFuture
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
 

Constructor Detail

DefaultCloseFuture

public DefaultCloseFuture(Object lock)
Create a new instance

Method Detail

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.