Class AsyncJobAddedNotification
java.lang.Object
org.flowable.job.service.impl.asyncexecutor.AsyncJobAddedNotification
- All Implemented Interfaces:
CommandContextCloseListener
- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterSessionsFlush
(CommandContext commandContext) Called when theSession
have been successfully flushed.void
closed
(CommandContext commandContext) Called when theCommandContext
is successfully closed.void
closeFailure
(CommandContext commandContext) Called when theCommandContext
has not been successfully closed due to an exception that happened.void
closing
(CommandContext commandContext) Called when theCommandContext
is being closed, but no 'close logic' has been executed.void
execute
(CommandContext commandContext) boolean
Determines if there are multiple occurrences allowed of this close listenerorder()
Determines the order in which the close listeners will be executed
-
Field Details
-
job
-
asyncExecutor
-
-
Constructor Details
-
AsyncJobAddedNotification
-
-
Method Details
-
closed
Description copied from interface:CommandContextCloseListener
Called when theCommandContext
is successfully closed. At this point, theTransactionContext
(if applicable) has been successfully committed and no rollback has happened. AllSession
instances have been closed. Note that throwing an exception here does *not* affect the transaction. TheCommandContext
will log the exception though.- Specified by:
closed
in interfaceCommandContextCloseListener
-
execute
-
closing
Description copied from interface:CommandContextCloseListener
Called when theCommandContext
is being closed, but no 'close logic' has been executed. At this point, theTransactionContext
(if applicable) has not yet been committed/rolledback and none of theSession
instances have been flushed. If an exception happens and it is not caught in this method: - TheSession
instances will *not* be flushed - TheTransactionContext
will be rolled back (if applicable)- Specified by:
closing
in interfaceCommandContextCloseListener
-
afterSessionsFlush
Description copied from interface:CommandContextCloseListener
Called when theSession
have been successfully flushed. When an exception happened during the flushing of the sessions, this method will not be called. If an exception happens and it is not caught in this method: - TheSession
instances will *not* be flushed - TheTransactionContext
will be rolled back (if applicable)- Specified by:
afterSessionsFlush
in interfaceCommandContextCloseListener
-
closeFailure
Description copied from interface:CommandContextCloseListener
Called when theCommandContext
has not been successfully closed due to an exception that happened. Note that throwing an exception here does *not* affect the transaction. TheCommandContext
will log the exception though.- Specified by:
closeFailure
in interfaceCommandContextCloseListener
-
order
Description copied from interface:CommandContextCloseListener
Determines the order in which the close listeners will be executed- Specified by:
order
in interfaceCommandContextCloseListener
- Returns:
- order lowest number will be executed first
-
multipleAllowed
public boolean multipleAllowed()Description copied from interface:CommandContextCloseListener
Determines if there are multiple occurrences allowed of this close listener- Specified by:
multipleAllowed
in interfaceCommandContextCloseListener
- Returns:
- multipleAllowed multiple occurrences allowed
-