org.springframework.util.concurrent

## Interface ListenableFutureCallback<T>

-     public interface ListenableFutureCallback<T>

  Defines the contract for callbacks that accept the result of a `ListenableFuture`.
  Since:
    4.0
  Author:
    Arjen Poutsma

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onFailure(Throwable t)` Called when the `ListenableFuture` fails to complete.
    `void` | `onSuccess(T result)` Called when the `ListenableFuture` successfully completes.

- - ### Method Detail

    - #### onSuccess

          void onSuccess(T result)

      Called when the `ListenableFuture` successfully completes.
      Parameters:
        `result` - the result

    - #### onFailure

          void onFailure(Throwable t)

      Called when the `ListenableFuture` fails to complete.
      Parameters:
        `t` - the exception that triggered the failure