Interface MultiExecutionCallback


  • public interface MultiExecutionCallback
    MultiExecutionCallback provides notification for when an execution is completed on each member that a task is submitted to. After all executions are completed on all submitted members, the onComplete(java.util.Map) method is called with a map of all results.
    See Also:
    IExecutorService, ExecutionCallback
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onComplete​(java.util.Map<Member,​java.lang.Object> values)
      Called after all executions are completed.
      void onResponse​(Member member, java.lang.Object value)
      Called when an execution is completed on a member.
    • Method Detail

      • onResponse

        void onResponse​(Member member,
                        java.lang.Object value)
        Called when an execution is completed on a member.
        Parameters:
        member - member that the task is submitted to.
        value - result of the execution
      • onComplete

        void onComplete​(java.util.Map<Member,​java.lang.Object> values)
        Called after all executions are completed.
        Parameters:
        values - map of Member-Response pairs