Interface Suspendable
- All Superinterfaces:
WorkerWithLifecycle
- All Known Subinterfaces:
SuspendableWorker
- All Known Implementing Classes:
SyncActivityWorker,SyncNexusWorker,SyncWorkflowWorker
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidAllow new poll requests.voidDo not make new poll requests.Methods inherited from interface io.temporal.internal.worker.WorkerWithLifecycle
getLifecycleState
-
Method Details
-
suspendPolling
void suspendPolling()Do not make new poll requests. Outstanding long polls still can return tasks after this method was called. -
resumePolling
void resumePolling()Allow new poll requests. -
isSuspended
boolean isSuspended()
-