Interface FutureEventHandler<V>

  • Type Parameters:
    V - type of the result


    public interface FutureEventHandler<V>
    Implementations of this interface are notified by implementations of FutureEvent when result of the future is available.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onException​(java.lang.Throwable error)
      Handle exception being throw during the computation of the future.
      void onResult​(V result)
      Handle valid result of the future.
    • Method Detail

      • onResult

        void onResult​(V result)
        Handle valid result of the future.
        Parameters:
        result - result of the future
      • onException

        void onException​(java.lang.Throwable error)
        Handle exception being throw during the computation of the future.
        Parameters:
        error - exception being thrown