Package org.apache.mina.common.support
Class DefaultCloseFuture
- java.lang.Object
-
- org.apache.mina.common.support.DefaultIoFuture
-
- org.apache.mina.common.support.DefaultCloseFuture
-
- All Implemented Interfaces:
CloseFuture
,IoFuture
public class DefaultCloseFuture extends DefaultIoFuture implements CloseFuture
A default implementation ofCloseFuture
.
-
-
Constructor Summary
Constructors Constructor Description DefaultCloseFuture(IoSession session)
Creates a new instance.DefaultCloseFuture(IoSession session, java.lang.Object lock)
Creates a new instance which uses the specified object as a lock.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 class org.apache.mina.common.support.DefaultIoFuture
addListener, getLock, getSession, getValue, isReady, join, join, 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.mina.common.IoFuture
addListener, getLock, getSession, isReady, join, join, removeListener
-
-
-
-
Method Detail
-
isClosed
public boolean isClosed()
Description copied from interface:CloseFuture
Returns true if the close request is finished and the session is closed.- Specified by:
isClosed
in interfaceCloseFuture
-
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 MINA internally. Please do not call this method directly.- Specified by:
setClosed
in interfaceCloseFuture
-
-