Creates a new event with the same name and data as the currentEvent and the handler name of this instance.
Syntax
final boolean
createRetryEvent
(
final Event
currentEvent
,
boolean
requiresNewTransaction
)
Parameters
-
currentEvent –
the event that should be retried
-
requiresNewTransaction –
indicates whether a new transaction should be used if another transaction has already been opened
Returns
true, if the new (retry) event was created successfully. false is returned, if the maximum number of retries has been reached or the new event was not accepted and processed respectively.
Exceptions
-
NullPointerException –
thrown if currentEvent is null.
Usage
This event is passed to the event system if the maximum number of retries is not reached.
The retry event will be queued with a configurable delay.
true, if the new (retry) event was created successfully. false is returned, if the maximum number of retries has been reached or the new event was not accepted and processed respectively.