Interface FutureCallback<V extends @Nullable java.lang.Object>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onFailure​(java.lang.Throwable t)
      Invoked when a Future computation fails or is canceled.
      void onSuccess​(V result)
      Invoked with the result of the Future computation when it is successful.
    • Method Detail

      • onSuccess

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

        void onFailure​(java.lang.Throwable t)
        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.