public final class PollDecisionTaskDispatcher extends java.lang.Object implements ShutdownableTaskExecutor<PollForDecisionTaskResponse>
Constructor and Description |
---|
PollDecisionTaskDispatcher(IWorkflowService service) |
PollDecisionTaskDispatcher(IWorkflowService service,
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(PollForDecisionTaskResponse t) |
void |
shutdown() |
void |
shutdownNow() |
void |
subscribe(java.lang.String taskList,
java.util.function.Consumer<PollForDecisionTaskResponse> consumer) |
public PollDecisionTaskDispatcher(IWorkflowService service)
public PollDecisionTaskDispatcher(IWorkflowService service, java.lang.Thread.UncaughtExceptionHandler exceptionHandler)
public void process(PollForDecisionTaskResponse t)
public void subscribe(java.lang.String taskList, java.util.function.Consumer<PollForDecisionTaskResponse> 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