Class DefaultCloseFuture

    • Constructor Detail

      • DefaultCloseFuture

        public DefaultCloseFuture​(Object id,
                                  Object lock)
        Create a new instance
        Parameters:
        id - Some identifier useful as toString() value
        lock - A synchronization object for locking access - if null then synchronization occurs on this instance
    • Method Detail

      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface CloseFuture
        Returns:
        true if the close request is finished and the target is closed.
      • 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