Interface SshFuture<T extends SshFuture<T>>

    • Method Detail

      • addListener

        T addListener​(SshFutureListener<T> listener)
        Adds an event listener which is notified when this future is completed. If the listener is added after the completion, the listener is directly notified.
        Parameters:
        listener - The SshFutureListener instance to add
        Returns:
        The future instance
      • removeListener

        T removeListener​(SshFutureListener<T> listener)
        Removes an existing event listener so it won't be notified when the future is completed.
        Parameters:
        listener - The SshFutureListener instance to remove
        Returns:
        The future instance