Interface BatchRequest


  • public interface BatchRequest
    Used to accumulate multiple operations
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(Functions.Func<?> request)
      Executes zero argument request.
      <A1> void add​(Functions.Func1<A1,​?> request, A1 arg1)
      Executes one argument request asynchronously.
      <A1,​A2>
      void
      add​(Functions.Func2<A1,​A2,​?> request, A1 arg1, A2 arg2)
      Executes two argument request asynchronously.
      <A1,​A2,​A3>
      void
      add​(Functions.Func3<A1,​A2,​A3,​?> request, A1 arg1, A2 arg2, A3 arg3)
      Executes three argument request asynchronously.
      <A1,​A2,​A3,​A4>
      void
      add​(Functions.Func4<A1,​A2,​A3,​A4,​?> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
      Executes four argument request asynchronously.
      <A1,​A2,​A3,​A4,​A5>
      void
      add​(Functions.Func5<A1,​A2,​A3,​A4,​A5,​?> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
      Executes five argument request asynchronously.
      <A1,​A2,​A3,​A4,​A5,​A6>
      void
      add​(Functions.Func6<A1,​A2,​A3,​A4,​A5,​A6,​?> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
      Executes six argument request asynchronously.
      void add​(Functions.Proc request)
      Executes zero argument request with void return type
      <A1> void add​(Functions.Proc1<A1> request, A1 arg1)
      Executes one argument request with void return type
      <A1,​A2>
      void
      add​(Functions.Proc2<A1,​A2> request, A1 arg1, A2 arg2)
      Executes two argument request with void return type
      <A1,​A2,​A3>
      void
      add​(Functions.Proc3<A1,​A2,​A3> request, A1 arg1, A2 arg2, A3 arg3)
      Executes three argument request with void return type
      <A1,​A2,​A3,​A4>
      void
      add​(Functions.Proc4<A1,​A2,​A3,​A4> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
      Executes four argument request with void return type
      <A1,​A2,​A3,​A4,​A5>
      void
      add​(Functions.Proc5<A1,​A2,​A3,​A4,​A5> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
      Executes five argument request with void return type
      <A1,​A2,​A3,​A4,​A5,​A6>
      void
      add​(Functions.Proc6<A1,​A2,​A3,​A4,​A5,​A6> request, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
      Executes six argument request with void return type
    • Method Detail

      • add

        <A1,​A2> void add​(Functions.Proc2<A1,​A2> request,
                               A1 arg1,
                               A2 arg2)
        Executes two argument request with void return type
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
      • add

        <A1,​A2,​A3> void add​(Functions.Proc3<A1,​A2,​A3> request,
                                        A1 arg1,
                                        A2 arg2,
                                        A3 arg3)
        Executes three argument request with void return type
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
      • add

        <A1,​A2,​A3,​A4> void add​(Functions.Proc4<A1,​A2,​A3,​A4> request,
                                                 A1 arg1,
                                                 A2 arg2,
                                                 A3 arg3,
                                                 A4 arg4)
        Executes four argument request with void return type
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
        arg4 - fourth request function parameter
      • add

        <A1,​A2,​A3,​A4,​A5> void add​(Functions.Proc5<A1,​A2,​A3,​A4,​A5> request,
                                                          A1 arg1,
                                                          A2 arg2,
                                                          A3 arg3,
                                                          A4 arg4,
                                                          A5 arg5)
        Executes five argument request with void return type
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
        arg4 - fourth request function parameter
        arg5 - fifth request function parameter
      • add

        <A1,​A2,​A3,​A4,​A5,​A6> void add​(Functions.Proc6<A1,​A2,​A3,​A4,​A5,​A6> request,
                                                                   A1 arg1,
                                                                   A2 arg2,
                                                                   A3 arg3,
                                                                   A4 arg4,
                                                                   A5 arg5,
                                                                   A6 arg6)
        Executes six argument request with void return type
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
        arg4 - fourth request function parameter
        arg5 - sixth request function parameter
        arg6 - sixth request function parameter
      • add

        <A1,​A2> void add​(Functions.Func2<A1,​A2,​?> request,
                               A1 arg1,
                               A2 arg2)
        Executes two argument request asynchronously.
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
      • add

        <A1,​A2,​A3> void add​(Functions.Func3<A1,​A2,​A3,​?> request,
                                        A1 arg1,
                                        A2 arg2,
                                        A3 arg3)
        Executes three argument request asynchronously.
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
      • add

        <A1,​A2,​A3,​A4> void add​(Functions.Func4<A1,​A2,​A3,​A4,​?> request,
                                                 A1 arg1,
                                                 A2 arg2,
                                                 A3 arg3,
                                                 A4 arg4)
        Executes four argument request asynchronously.
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
        arg4 - fourth request function parameter
      • add

        <A1,​A2,​A3,​A4,​A5> void add​(Functions.Func5<A1,​A2,​A3,​A4,​A5,​?> request,
                                                          A1 arg1,
                                                          A2 arg2,
                                                          A3 arg3,
                                                          A4 arg4,
                                                          A5 arg5)
        Executes five argument request asynchronously.
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request function parameter
        arg2 - second request function parameter
        arg3 - third request function parameter
        arg4 - fourth request function parameter
        arg5 - sixth request function parameter
      • add

        <A1,​A2,​A3,​A4,​A5,​A6> void add​(Functions.Func6<A1,​A2,​A3,​A4,​A5,​A6,​?> request,
                                                                   A1 arg1,
                                                                   A2 arg2,
                                                                   A3 arg3,
                                                                   A4 arg4,
                                                                   A5 arg5,
                                                                   A6 arg6)
        Executes six argument request asynchronously.
        Parameters:
        request - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first request argument
        arg2 - second request function parameter
        arg3 - third request function parameter
        arg4 - fourth request function parameter
        arg5 - sixth request function parameter
        arg6 - sixth request function parameter