Package org.flowable.job.service.impl
Class ExternalWorkerJobAcquireBuilderImpl
java.lang.Object
org.flowable.job.service.impl.ExternalWorkerJobAcquireBuilderImpl
- All Implemented Interfaces:
ExternalWorkerJobAcquireBuilder
public class ExternalWorkerJobAcquireBuilderImpl
extends Object
implements ExternalWorkerJobAcquireBuilder
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>protected Stringprotected final CommandExecutorprotected final JobServiceConfigurationprotected Durationprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionExternalWorkerJobAcquireBuilderImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionacquireAndLock(int numberOfTasks, String workerId, int numberOfRetries) forUserOrGroups(String userId, Collection<String> groups) getTopic()onlyBpmn()onlyCmmn()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.job.api.ExternalWorkerJobAcquireBuilder
acquireAndLock
-
Field Details
-
commandExecutor
-
jobServiceConfiguration
-
topic
-
lockDuration
-
scopeType
-
tenantId
-
authorizedUser
-
authorizedGroups
-
-
Constructor Details
-
ExternalWorkerJobAcquireBuilderImpl
public ExternalWorkerJobAcquireBuilderImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Details
-
topic
- Specified by:
topicin interfaceExternalWorkerJobAcquireBuilder
-
onlyBpmn
- Specified by:
onlyBpmnin interfaceExternalWorkerJobAcquireBuilder
-
onlyCmmn
- Specified by:
onlyCmmnin interfaceExternalWorkerJobAcquireBuilder
-
scopeType
- Specified by:
scopeTypein interfaceExternalWorkerJobAcquireBuilder
-
tenantId
- Specified by:
tenantIdin interfaceExternalWorkerJobAcquireBuilder
-
forUserOrGroups
- Specified by:
forUserOrGroupsin interfaceExternalWorkerJobAcquireBuilder
-
acquireAndLock
public List<AcquiredExternalWorkerJob> acquireAndLock(int numberOfTasks, String workerId, int numberOfRetries) - Specified by:
acquireAndLockin interfaceExternalWorkerJobAcquireBuilder
-
getTopic
-
getLockDuration
-
getScopeType
-
getTenantId
-
getAuthorizedUser
-
getAuthorizedGroups
-