public final class PollWorkflowTaskDispatcher extends java.lang.Object implements ShutdownableTaskExecutor<io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse>
Constructor and Description |
---|
PollWorkflowTaskDispatcher(WorkflowServiceStubs service,
com.uber.m3.tally.Scope metricsScope) |
PollWorkflowTaskDispatcher(WorkflowServiceStubs service,
com.uber.m3.tally.Scope metricsScope,
java.lang.Thread.UncaughtExceptionHandler exceptionHandler) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
process(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse t) |
void |
shutdown() |
void |
shutdownNow() |
void |
subscribe(java.lang.String taskQueue,
Functions.Proc1<io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse> consumer) |
public PollWorkflowTaskDispatcher(WorkflowServiceStubs service, com.uber.m3.tally.Scope metricsScope)
public PollWorkflowTaskDispatcher(WorkflowServiceStubs service, com.uber.m3.tally.Scope metricsScope, java.lang.Thread.UncaughtExceptionHandler exceptionHandler)
public void process(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse t)
public void subscribe(java.lang.String taskQueue, Functions.Proc1<io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse> consumer)
public boolean isShutdown()
isShutdown
in interface Shutdownable
public boolean isTerminated()
isTerminated
in interface Shutdownable
public void shutdown()
shutdown
in interface Shutdownable
public void shutdownNow()
shutdownNow
in interface Shutdownable
public void awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
awaitTermination
in interface Shutdownable