Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.mina.common
Interface CloseFuture

All Superinterfaces:
  IoFuture

    public interface CloseFuture

extends IoFuture

An `IoFuture` for asynchronous close requests.

### Example

     IoSession session = ...;
     CloseFuture future = session.close();
     // Wait until the connection is closed
     future.join();
     // Now connection should be closed.
     assert future.isClosed();

Version:
  $Rev: 555855 $, $Date: 2007-07-13 05:19:00 +0200 (Fri, 13 Jul 2007) $
Author:
  The Apache Directory Project (mina-dev@directory.apache.org)

Method Summary
`boolean` | `isClosed()` Returns `true` if the close request is finished and the session is closed.
`void` | `setClosed()` Marks this future as closed and notifies all threads waiting for this future.

Methods inherited from interface org.apache.mina.common.IoFuture
`addListener, getLock, getSession, isReady, join, join, removeListener`

Method Detail

### isClosed

    boolean isClosed()

  Returns `true` if the close request is finished and the session is closed.

### setClosed

    void setClosed()

  Marks this future as closed and notifies all threads waiting for this future. This method is invoked by MINA internally. Please do not call this method directly.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.