public class SyncActivityWorker extends java.lang.Object implements SuspendableWorker
Constructor and Description |
---|
SyncActivityWorker(IWorkflowService service,
java.lang.String domain,
java.lang.String taskList,
SingleWorkerOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
isShutdown() |
boolean |
isStarted() |
boolean |
isSuspended() |
boolean |
isTerminated() |
void |
resumePolling()
Allow new poll requests.
|
void |
setActivitiesImplementation(java.lang.Object... activitiesImplementation) |
void |
shutdown() |
void |
shutdownNow() |
void |
start() |
void |
suspendPolling()
Do not make new poll requests.
|
public SyncActivityWorker(IWorkflowService service, java.lang.String domain, java.lang.String taskList, SingleWorkerOptions options)
public void setActivitiesImplementation(java.lang.Object... activitiesImplementation)
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
public void suspendPolling()
Suspendable
suspendPolling
in interface Suspendable
public void resumePolling()
Suspendable
resumePolling
in interface Suspendable
public boolean isSuspended()
isSuspended
in interface Suspendable