public class ExternalWorkerJobAcquireBuilderImpl extends Object implements ExternalWorkerJobAcquireBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Collection<String> |
authorizedGroups |
protected String |
authorizedUser |
protected CommandExecutor |
commandExecutor |
protected JobServiceConfiguration |
jobServiceConfiguration |
protected Duration |
lockDuration |
protected String |
scopeType |
protected String |
tenantId |
protected String |
topic |
| Constructor and Description |
|---|
ExternalWorkerJobAcquireBuilderImpl(CommandExecutor commandExecutor,
JobServiceConfiguration jobServiceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
List<AcquiredExternalWorkerJob> |
acquireAndLock(int numberOfTasks,
String workerId,
int numberOfRetries) |
ExternalWorkerJobAcquireBuilder |
forUserOrGroups(String userId,
Collection<String> groups) |
Collection<String> |
getAuthorizedGroups() |
String |
getAuthorizedUser() |
Duration |
getLockDuration() |
String |
getScopeType() |
String |
getTenantId() |
String |
getTopic() |
ExternalWorkerJobAcquireBuilder |
onlyBpmn() |
ExternalWorkerJobAcquireBuilder |
onlyCmmn() |
ExternalWorkerJobAcquireBuilder |
scopeType(String scopeType) |
ExternalWorkerJobAcquireBuilder |
tenantId(String tenantId) |
ExternalWorkerJobAcquireBuilder |
topic(String topic,
Duration lockDuration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireAndLockprotected final CommandExecutor commandExecutor
protected final JobServiceConfiguration jobServiceConfiguration
protected String topic
protected Duration lockDuration
protected String scopeType
protected String tenantId
protected String authorizedUser
protected Collection<String> authorizedGroups
public ExternalWorkerJobAcquireBuilderImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
public ExternalWorkerJobAcquireBuilder topic(String topic, Duration lockDuration)
topic in interface ExternalWorkerJobAcquireBuilderpublic ExternalWorkerJobAcquireBuilder onlyBpmn()
onlyBpmn in interface ExternalWorkerJobAcquireBuilderpublic ExternalWorkerJobAcquireBuilder onlyCmmn()
onlyCmmn in interface ExternalWorkerJobAcquireBuilderpublic ExternalWorkerJobAcquireBuilder scopeType(String scopeType)
scopeType in interface ExternalWorkerJobAcquireBuilderpublic ExternalWorkerJobAcquireBuilder tenantId(String tenantId)
tenantId in interface ExternalWorkerJobAcquireBuilderpublic ExternalWorkerJobAcquireBuilder forUserOrGroups(String userId, Collection<String> groups)
forUserOrGroups in interface ExternalWorkerJobAcquireBuilderpublic List<AcquiredExternalWorkerJob> acquireAndLock(int numberOfTasks, String workerId, int numberOfRetries)
acquireAndLock in interface ExternalWorkerJobAcquireBuilderpublic String getTopic()
public Duration getLockDuration()
public String getScopeType()
public String getTenantId()
public String getAuthorizedUser()
public Collection<String> getAuthorizedGroups()
Copyright © 2021 Flowable. All rights reserved.