Class DefaultWriteFuture

    • Constructor Detail

      • DefaultWriteFuture

        public DefaultWriteFuture​(IoSession session)
        Creates a new instance.
      • DefaultWriteFuture

        public DefaultWriteFuture​(IoSession session,
                                  java.lang.Object lock)
        Creates a new instance which uses the specified object as a lock.
    • Method Detail

      • isWritten

        public boolean isWritten()
        Description copied from interface: WriteFuture
        Returns true if the write operation is finished successfully.
        Specified by:
        isWritten in interface WriteFuture
      • setWritten

        public void setWritten​(boolean written)
        Description copied from interface: WriteFuture
        Sets whether the message is written or not, and notifies all threads waiting for this future. This method is invoked by MINA internally. Please do not call this method directly.
        Specified by:
        setWritten in interface WriteFuture