Class DefaultCloseFuture

    • Constructor Detail

      • DefaultCloseFuture

        public DefaultCloseFuture​(IoSession session)
        Creates a new instance.
        Parameters:
        session - The associated session
    • Method Detail

      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface CloseFuture
        Returns:
        true if the close request is finished and the session is closed.
      • setClosed

        public 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.
        Specified by:
        setClosed in interface CloseFuture
      • await

        public CloseFuture await()
                          throws java.lang.InterruptedException
        Wait for the asynchronous operation to complete. The attached listeners will be notified when the operation is completed.
        Specified by:
        await in interface CloseFuture
        Specified by:
        await in interface IoFuture
        Overrides:
        await in class DefaultIoFuture
        Returns:
        The instance of IoFuture that we are waiting for
        Throws:
        java.lang.InterruptedException - If the thread is interrupted while waiting