Interface FutureCallback<V>


@Deprecated(since="2022-12-01") public interface FutureCallback<V>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Since:
10.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Invoked when a Future computation fails or is canceled.
    void
    onSuccess(V result)
    Deprecated.
    Invoked with the result of the Future computation when it is successful.
  • Method Details

    • onSuccess

      void onSuccess(@Nullable V result)
      Deprecated.
      Invoked with the result of the Future computation when it is successful.
    • onFailure

      void onFailure(Throwable t)
      Deprecated.
      Invoked when a Future computation fails or is canceled.

      If the future's get method throws an ExecutionException, then the cause is passed to this method. Any other thrown object is passed unaltered.