Class SyncWorkflowWorker

    • Method Detail

      • setWorkflowImplementationTypes

        public void setWorkflowImplementationTypes​(WorkflowImplementationOptions options,
                                                   java.lang.Class<?>[] workflowImplementationTypes)
      • addWorkflowImplementationFactory

        public <R> void addWorkflowImplementationFactory​(java.lang.Class<R> clazz,
                                                         Functions.Func<R> factory)
      • setLocalActivitiesImplementation

        public void setLocalActivitiesImplementation​(java.lang.Object... activitiesImplementation)
      • setActivitiesImplementationToDispatchLocally

        public void setActivitiesImplementationToDispatchLocally​(java.lang.Object... activitiesImplementation)
      • start

        public void start()
        Specified by:
        start in interface Startable
      • awaitTermination

        public void awaitTermination​(long timeout,
                                     java.util.concurrent.TimeUnit unit)
        Specified by:
        awaitTermination in interface Shutdownable
      • suspendPolling

        public void suspendPolling()
        Description copied from interface: Suspendable
        Do not make new poll requests. Outstanding long polls still can return tasks after this method was called.
        Specified by:
        suspendPolling in interface Suspendable
      • queryWorkflowExecution

        public <R> R queryWorkflowExecution​(WorkflowExecution execution,
                                            java.lang.String queryType,
                                            java.lang.Class<R> resultClass,
                                            java.lang.reflect.Type resultType,
                                            java.lang.Object[] args)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • queryWorkflowExecution

        public <R> R queryWorkflowExecution​(WorkflowExecutionHistory history,
                                            java.lang.String queryType,
                                            java.lang.Class<R> resultClass,
                                            java.lang.reflect.Type resultType,
                                            java.lang.Object[] args)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isHealthy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> isHealthy()