Interface Callback<T>


  • public interface Callback<T>
    A callback of the asynchronous execution
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onFailure​(java.lang.Exception exception)
      Invoked when the execution is completed with an exception
      void onSuccess​(T result)
      Invoked when the execution is successful
    • Method Detail

      • onSuccess

        void onSuccess​(T result)
        Invoked when the execution is successful
        Parameters:
        result - a result of the execution
      • onFailure

        void onFailure​(java.lang.Exception exception)
        Invoked when the execution is completed with an exception
        Parameters:
        exception - an exception thrown during the execution