Class: Hutch::Acknowledgements::Base
- Inherits:
-
Object
- Object
- Hutch::Acknowledgements::Base
- Defined in:
- lib/hutch/acknowledgements/base.rb
Overview
Defines acknowledgement handler interface.
Direct Known Subclasses
Instance Method Summary collapse
-
#handle(delivery_info, properties, broker, ex) ⇒ Object
Implements negative acknowledgement/requeueing logic and returns a boolean to indicate whether acknowledgement was performed.
Instance Method Details
#handle(delivery_info, properties, broker, ex) ⇒ Object
Implements negative acknowledgement/requeueing logic and returns a boolean to indicate whether acknowledgement was performed. If false is returned, next handler in the chain will be invoked.
The chain always falls back to unconditional nacking.
11 12 13 |
# File 'lib/hutch/acknowledgements/base.rb', line 11 def handle(delivery_info, properties, broker, ex) raise NotImplementedError.new end |