Creates a new RabbitMQ-based handler that receives all events and commands and stores them in the transactional inbox.
Function to store the incoming RabbitMQ message in the transactional inbox
Optionalcustomizations: InboxWriterCustomizationsProvide custom logic on how the inbox writer should process messages
ProtectedloggerReadonlymessageReadonlymiddlewareOptional ReadonlyoverridesProtectedownerProtectedstoreFunction to store the incoming RabbitMQ message in the transactional inbox
OptionalacceptedMessageSettings: MessagingSettings[]OptionalmapFunction to map thrown error of unspecified type to a more human-readable error. Defining this mapping function eliminates the need to wrap onMessage contents into an explicit try-catch block.
Store the incoming message in the transactional inbox.
OptionalonFunction that will be called after the last retry attempt has failed. Useful for handling errors in an explicit way.
non-binary message payload (usually a json)
message with all related message metadata, including message envelope
error object that caused message processing to repeatedly fail
Base class for message handlers to handle incoming messages from the subscribed queue. *