Class GenericWorkflowClientImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      GenericWorkflowClientImpl​(io.temporal.serviceclient.WorkflowServiceStubs service, com.uber.m3.tally.Scope metricsScope)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse getWorkflowExecutionHistory​(io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request)  
      java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse> getWorkflowExecutionHistoryAsync​(io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request)  
      io.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse listWorkflowExecutions​(io.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest listRequest)  
      java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse> listWorkflowExecutionsAsync​(io.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest listRequest)  
      io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse longPollHistory​(io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request, io.grpc.Deadline deadline)  
      java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse> longPollHistoryAsync​(io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request, io.grpc.Deadline deadline)  
      io.temporal.api.workflowservice.v1.QueryWorkflowResponse query​(io.temporal.api.workflowservice.v1.QueryWorkflowRequest queryParameters)  
      void requestCancel​(io.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest request)  
      void signal​(io.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest request)  
      io.temporal.api.common.v1.WorkflowExecution signalWithStart​(io.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest request)  
      io.temporal.api.common.v1.WorkflowExecution start​(io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest request)  
      void terminate​(io.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericWorkflowClientImpl

        public GenericWorkflowClientImpl​(io.temporal.serviceclient.WorkflowServiceStubs service,
                                         com.uber.m3.tally.Scope metricsScope)
    • Method Detail

      • start

        public io.temporal.api.common.v1.WorkflowExecution start​(io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest request)
        Specified by:
        start in interface GenericWorkflowClient
      • signal

        public void signal​(io.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest request)
        Specified by:
        signal in interface GenericWorkflowClient
      • signalWithStart

        public io.temporal.api.common.v1.WorkflowExecution signalWithStart​(io.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest request)
        Specified by:
        signalWithStart in interface GenericWorkflowClient
      • requestCancel

        public void requestCancel​(io.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest request)
        Specified by:
        requestCancel in interface GenericWorkflowClient
      • terminate

        public void terminate​(io.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest request)
        Specified by:
        terminate in interface GenericWorkflowClient
      • longPollHistory

        public io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse longPollHistory​(@Nonnull
                                                                                                      io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request,
                                                                                                      @Nonnull
                                                                                                      io.grpc.Deadline deadline)
        Specified by:
        longPollHistory in interface GenericWorkflowClient
      • longPollHistoryAsync

        public java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse> longPollHistoryAsync​(@Nonnull
                                                                                                                                                   io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request,
                                                                                                                                                   @Nonnull
                                                                                                                                                   io.grpc.Deadline deadline)
        Specified by:
        longPollHistoryAsync in interface GenericWorkflowClient
      • getWorkflowExecutionHistory

        public io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse getWorkflowExecutionHistory​(@Nonnull
                                                                                                                  io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request)
        Specified by:
        getWorkflowExecutionHistory in interface GenericWorkflowClient
      • getWorkflowExecutionHistoryAsync

        public java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse> getWorkflowExecutionHistoryAsync​(@Nonnull
                                                                                                                                                               io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest request)
        Specified by:
        getWorkflowExecutionHistoryAsync in interface GenericWorkflowClient
      • query

        public io.temporal.api.workflowservice.v1.QueryWorkflowResponse query​(io.temporal.api.workflowservice.v1.QueryWorkflowRequest queryParameters)
        Specified by:
        query in interface GenericWorkflowClient
      • listWorkflowExecutions

        public io.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse listWorkflowExecutions​(io.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest listRequest)
        Specified by:
        listWorkflowExecutions in interface GenericWorkflowClient
      • listWorkflowExecutionsAsync

        public java.util.concurrent.CompletableFuture<io.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse> listWorkflowExecutionsAsync​(io.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest listRequest)
        Specified by:
        listWorkflowExecutionsAsync in interface GenericWorkflowClient