createRetryEvent(final Event, boolean) method

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

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

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.