Class AbstractMessageBasedJobManager
java.lang.Object
org.flowable.job.service.impl.asyncexecutor.DefaultJobManager
org.flowable.job.service.impl.asyncexecutor.message.AbstractMessageBasedJobManager
- All Implemented Interfaces:
JobManager
Abstract class that contains the main logic to send information about an async history data job to a message queue.
Subclasses are responsible for implementing the actual sending logic.
- Author:
- Joram Barrez
-
Field Summary
Fields inherited from class org.flowable.job.service.impl.asyncexecutor.DefaultJobManager
CYCLE_TYPE, jobServiceConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMessageBasedJobManager(JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected abstract voidsendMessage(JobInfo job) Subclasses need to implement this method: it should contain the actual sending of the message using the job data provided in the parameter.protected voidprotected voidtriggerExecutorIfNeeded(JobEntity jobEntity) voidUnacquires a job, meaning that this job was previously locked, and it is now freed to be acquired by other executor nodes.voidunacquireWithDecrementRetries(JobInfo job, Throwable throwable) Unacquires a job, meaning that this job was previously locked, and it is now freed to be acquired by other executor nodes.Methods inherited from class org.flowable.job.service.impl.asyncexecutor.DefaultJobManager
activateSuspendedJob, bulkMoveTimerJobsToExecutableJobs, callHistoryJobProcessors, callJobProcessors, copyHistoryJobInfo, copyHistoryJobProperties, copyJobInfo, createAsyncHistoryHintListeners, createAsyncJob, createDeadLetterJobFromHistoryJob, createDeadLetterJobFromOtherJob, createExecutableJobFromOtherJob, createExecutableJobFromOtherJob, createExternalWorkerJobFromOtherJob, createHintListeners, createSuspendedJobFromOtherJob, createTimerJobFromOtherJob, execute, executeHistoryJob, executeHistoryJobHandler, executeJobHandler, executeMessageJob, executeTimerJob, fillDefaultAsyncJobInfo, getAsyncExecutor, getAsyncHistoryExecutor, getBusinessCalendarName, getBusinessCalendarName, getCommandContext, getExceptionStacktrace, getJobServiceConfiguration, hintAsyncExecutor, hintAsyncHistoryExecutor, internalCreateAsyncJob, internalCreateLockedAsyncJob, isAsyncExecutorActive, isAsyncExecutorRemainingCapacitySufficient, isAsyncHistoryExecutorActive, isExecutorActive, isValidTime, moveDeadLetterJobToExecutableJob, moveDeadLetterJobToHistoryJob, moveExternalWorkerJobToExecutableJob, moveJobToDeadLetterJob, moveJobToSuspendedJob, moveJobToTimerJob, moveTimerJobToExecutableJob, scheduleAsyncJob, scheduleHistoryJob, scheduleTimerJob, sendMoveToDeadletterEvent, sendTimerScheduledEvent, setJobServiceConfiguration, setLockTimeAndOwner
-
Constructor Details
-
AbstractMessageBasedJobManager
public AbstractMessageBasedJobManager() -
AbstractMessageBasedJobManager
-
-
Method Details
-
triggerExecutorIfNeeded
- Overrides:
triggerExecutorIfNeededin classDefaultJobManager
-
triggerAsyncHistoryExecutorIfNeeded
- Overrides:
triggerAsyncHistoryExecutorIfNeededin classDefaultJobManager
-
unacquire
Description copied from interface:JobManagerUnacquires a job, meaning that this job was previously locked, and it is now freed to be acquired by other executor nodes.- Specified by:
unacquirein interfaceJobManager- Overrides:
unacquirein classDefaultJobManager
-
unacquireWithDecrementRetries
Description copied from interface:JobManagerUnacquires a job, meaning that this job was previously locked, and it is now freed to be acquired by other executor nodes.- Specified by:
unacquireWithDecrementRetriesin interfaceJobManager- Overrides:
unacquireWithDecrementRetriesin classDefaultJobManager
-
prepareAndSendMessage
-
sendMessage
Subclasses need to implement this method: it should contain the actual sending of the message using the job data provided in the parameter.
-