Class AsyncJobMessageReceiver
java.lang.Object
org.flowable.job.service.impl.asyncexecutor.message.AsyncJobMessageReceiver
Experimental.
Helper class to be used in a setup of async jobs handling where the job is
inserted in the same database transaction as the runtime data in combination with sending message to a message queue.
Use a subclass of
AbstractMessageBasedJobManager to send the message, this
class, with the proper handler instance set, will take care of handling it on the receiving side.
This class contains the boilerplate logic that is needed to fetch the job data
and delete the job in case of a successful processing.- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AsyncJobMessageHandlerprotected JobServiceConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionAsyncJobMessageReceiver(JobServiceConfiguration jobServiceConfiguration, AsyncJobMessageHandler asyncJobMessageHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidmessageForJobReceived(String jobId) voidsetAsyncJobMessageHandler(AsyncJobMessageHandler asyncJobMessageHandler) voidsetJobServiceConfiguration(JobServiceConfiguration jobServiceConfiguration)
-
Field Details
-
jobServiceConfiguration
-
asyncJobMessageHandler
-
-
Constructor Details
-
AsyncJobMessageReceiver
public AsyncJobMessageReceiver() -
AsyncJobMessageReceiver
public AsyncJobMessageReceiver(JobServiceConfiguration jobServiceConfiguration, AsyncJobMessageHandler asyncJobMessageHandler)
-
-
Method Details
-
messageForJobReceived
-
getJobServiceConfiguration
-
setJobServiceConfiguration
-
getAsyncJobMessageHandler
-
setAsyncJobMessageHandler
-