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
Messageevents and triggering the callbacks. - safely_
apply - Execute the async
callbackto process thedeliveryin a transaction like manner. Thedeliveryis ACKed, NACKed (and requeued) or REJECTed depending on theErrorreturned. - safely_
apply_ sync - Execute the synchronous
callbackto process thedeliveryin a transaction like manner. Thedeliveryis ACKed, NACKed (and requeued) or REJECTed depending on theErrorreturned. - safely_
manage_ configuration_ sync