Class DefaultFlowableWorkerContainerFactory
java.lang.Object
org.flowable.external.worker.config.DefaultFlowableWorkerContainerFactory
- All Implemented Interfaces:
FlowableWorkerContainerFactory<WorkerJobListenerContainer>
public class DefaultFlowableWorkerContainerFactory
extends Object
implements FlowableWorkerContainerFactory<WorkerJobListenerContainer>
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWorkerContainer(FlowableWorkerEndpoint endpoint) Create aFlowableWorkerContainerfor the givenFlowableWorkerEndpoint.voidsetConcurrency(Integer concurrency) Specify the container concurrencyvoidsetExternalWorkerClient(ExternalWorkerClient externalWorkerClient) voidsetLockDuration(Duration lockDuration) Specify the lock duration for the acquired jobsvoidsetNumberOfRetries(Integer numberOfRetries) Specify the amount of retries when acquiring jobsvoidsetNumberOfTasks(Integer numberOfTasks) Specify the amount of jobs that should be acquiredvoidsetPollingInterval(Duration pollingInterval) Specify the container polling interval
-
Field Details
-
externalWorkerClient
-
pollingInterval
-
concurrency
-
lockDuration
-
numberOfTasks
-
numberOfRetries
-
-
Constructor Details
-
DefaultFlowableWorkerContainerFactory
public DefaultFlowableWorkerContainerFactory()
-
-
Method Details
-
setExternalWorkerClient
-
setPollingInterval
Specify the container polling interval- Parameters:
pollingInterval- the polling interval for the container
-
setConcurrency
Specify the container concurrency- Parameters:
concurrency- the number of consumers to create
-
setLockDuration
Specify the lock duration for the acquired jobs- Parameters:
lockDuration- the lock duration for the acquired jobs
-
setNumberOfTasks
Specify the amount of jobs that should be acquired- Parameters:
numberOfTasks- the amount of jobs that should be acquired
-
setNumberOfRetries
Specify the amount of retries when acquiring jobs- Parameters:
numberOfRetries- the amount of retries when acquiring jobs
-
createWorkerContainer
Description copied from interface:FlowableWorkerContainerFactoryCreate aFlowableWorkerContainerfor the givenFlowableWorkerEndpoint.- Specified by:
createWorkerContainerin interfaceFlowableWorkerContainerFactory<WorkerJobListenerContainer>- Parameters:
endpoint- the endpoint to configure- Returns:
- the created container
-