Interface FutureImpl<R>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void failure​(java.lang.Throwable failure)
      Notify about the failure, occurred during asynchronous operation execution.
      R getResult()
      Get current result value without any blocking.
      void result​(R result)
      Set the result value and notify about operation completion.
      • Methods inherited from interface java.util.concurrent.Future

        cancel, get, get, isCancelled, isDone
    • Method Detail

      • getResult

        R getResult()
        Get current result value without any blocking.
        Returns:
        current result value without any blocking.
      • result

        void result​(R result)
        Set the result value and notify about operation completion.
        Parameters:
        result - the result value
      • failure

        void failure​(java.lang.Throwable failure)
        Notify about the failure, occurred during asynchronous operation execution.
        Parameters:
        failure -