Skip to main content

Module service

Module service 

Source
Expand description

Callback API and helpers for implementing services.

Enums§

Error
Error type for message handlers. In case of recoverable error, the error is logged and the message is requeued (only once). In case of critical error, the error is logged and the message is rejected to the dead-letter.

Traits§

Service
The traditional Callback API

Functions§

run_service
Run the service forever, consuming the Message events and triggering the callbacks.
safely_apply
Execute the async callback to process the delivery in a transaction like manner. The delivery is ACKed, NACKed (and requeued) or REJECTed depending on the Error returned.
safely_apply_sync
Execute the synchronous callback to process the delivery in a transaction like manner. The delivery is ACKed, NACKed (and requeued) or REJECTed depending on the Error returned.
safely_manage_configuration_sync