OptionalmaxAttempts?: numberOptionalonGiveUp?: (Called when the reaction gives up on an event (needs maxAttempts), in the transaction (tx) that writes its
dead letter and moves the checkpoint past it. Return to skip the event and handle the next ones, or throw to keep
the stream waiting, e.g. until the bug is fixed: nothing is written then, and the event is retried after the retry
delay, the handler first.
The reaction to run; its consumer is named reaction:<name>.
How many times to run the handler of an event before giving up on it: the event is then written to
hermes_dead_lettersand skipped, in the transaction that moves the checkpoint of the reaction past it.