Interface ListenableFuture<T,​L extends GenericCompletionListener>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.Future<T> addListener​(L listener)
      Add a listener to the future, which will be executed once the operation completes.
      java.util.concurrent.Future<T> removeListener​(L listener)
      Remove a previously added listener from the future.
      • Methods inherited from interface java.util.concurrent.Future

        cancel, get, get, isCancelled, isDone
    • Method Detail

      • addListener

        java.util.concurrent.Future<T> addListener​(L listener)
        Add a listener to the future, which will be executed once the operation completes.
        Parameters:
        listener - the listener which will be executed.
        Returns:
        the current future to allow for object-chaining.
      • removeListener

        java.util.concurrent.Future<T> removeListener​(L listener)
        Remove a previously added listener from the future.
        Parameters:
        listener - the previously added listener.
        Returns:
        the current future to allow for object-chaining.