Abstract The MessageHandler constructor
The type of the message which this MessageHandler handles.
Optional overrides: SubscriptionConfigCustom adjustments to overwrite Rascal subscription configuration settings.
Middleware functions that should be executed for this specific message handler in addition to the global ones.
Readonly messageThe type of the message which this MessageHandler handles.
Readonly middlewareMiddleware functions that should be executed for this specific message handler in addition to the global ones.
Optional Readonly overridesCustom adjustments to overwrite Rascal subscription configuration settings.
Optional mapAbstract onMain message handling function.
non-binary message payload (usually a json)
message with all related message metadata, including message envelope
acknowledgment or rejection callback that can be called to forcefully complete the message processing.
Optional onFunction 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
Generated using TypeDoc
Base class for message handlers to handle incoming messages from the subscribed queue. *