Class AbstractFlowableWorkerEndpoint
java.lang.Object
org.flowable.external.worker.config.AbstractFlowableWorkerEndpoint
- All Implemented Interfaces:
FlowableWorkerEndpoint
- Direct Known Subclasses:
MethodFlowableWorkerEndpoint
public abstract class AbstractFlowableWorkerEndpoint
extends Object
implements FlowableWorkerEndpoint
Base model for a Flowable worker endpoint.
- Author:
- Filip Hrisafov
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FlowableWorkerJobListenercreateWorkerJobListener(FlowableWorkerContainer container) Create aFlowableWorkerJobListenerthat is able to serve this endpoint for the specified container.Return the amount of concurrent workers that will be polling for jobs.protected StringBuilderReturn a description for this endpoint.getId()Return the id of this endpoint (possibly generated).Return lock duration when requesting jobs, if any.Return the number of retries that should be sent when requesting jobs, if any.Return the number of jobs that should be requested, if any.Return polling interval for requesting jobs, if any.getTopic()Return the name of the topic for this endpoint.voidsetConcurrency(Integer concurrency) Set the amount of concurrent workers that will be polling for jobs.voidSet a custom id for this endpoint.voidsetLockDuration(Duration lockDuration) Set lock duration when requesting jobsvoidsetNumberOfRetries(Integer numberOfRetries) Set the number of retries that should be sent when requesting jobs.voidsetNumberOfTasks(Integer numberOfTasks) Set the amount of jobs that should be requested, if any.voidsetPollingInterval(Duration pollingInterval) Set polling interval for requesting jobsvoidSet the name of the topic for this endpoint.protected voidsetupFlowableWorkerContainer(WorkerJobListenerContainer workerContainer) voidsetupWorkerContainer(FlowableWorkerContainer workerContainer) Set up the specified worker container with the model defined by this endpoint.protected voidsetupWorkerJobListener(FlowableWorkerContainer container) toString()
-
Field Details
-
id
-
topic
-
lockDuration
-
pollingInterval
-
numberOfRetries
-
numberOfTasks
-
concurrency
-
-
Constructor Details
-
AbstractFlowableWorkerEndpoint
public AbstractFlowableWorkerEndpoint()
-
-
Method Details
-
setId
Set a custom id for this endpoint. -
getId
Return the id of this endpoint (possibly generated).- Specified by:
getIdin interfaceFlowableWorkerEndpoint
-
setTopic
Set the name of the topic for this endpoint. -
getTopic
Return the name of the topic for this endpoint. -
setLockDuration
Set lock duration when requesting jobs -
getLockDuration
Return lock duration when requesting jobs, if any. -
setPollingInterval
Set polling interval for requesting jobs -
getPollingInterval
Return polling interval for requesting jobs, if any. -
setNumberOfRetries
Set the number of retries that should be sent when requesting jobs. -
getNumberOfRetries
Return the number of retries that should be sent when requesting jobs, if any. -
setNumberOfTasks
Set the amount of jobs that should be requested, if any. -
getNumberOfTasks
Return the number of jobs that should be requested, if any. -
setConcurrency
Set the amount of concurrent workers that will be polling for jobs. -
getConcurrency
Return the amount of concurrent workers that will be polling for jobs. -
setupWorkerContainer
Description copied from interface:FlowableWorkerEndpointSet up the specified worker container with the model defined by this endpoint.This endpoint must provide the requested missing option(s) of the specified container to make it usable. Usually, this is about setting the
topicand theworkerContainerto use but an implementation may override any default setting that was already set.- Specified by:
setupWorkerContainerin interfaceFlowableWorkerEndpoint- Parameters:
workerContainer- the worker container to configure
-
setupFlowableWorkerContainer
-
createWorkerJobListener
protected abstract FlowableWorkerJobListener createWorkerJobListener(FlowableWorkerContainer container) Create aFlowableWorkerJobListenerthat is able to serve this endpoint for the specified container. -
setupWorkerJobListener
-
getEndpointDescription
Return a description for this endpoint.Available to subclasses, for inclusion in their
toString()result. -
toString
-