Class: Hutch::Acknowledgements::NackOnAllFailures
- Includes:
- Logging
- Defined in:
- lib/hutch/acknowledgements/nack_on_all_failures.rb
Instance Method Summary collapse
Methods included from Logging
#logger, logger, logger=, setup_logger
Instance Method Details
#handle(delivery_info, properties, broker, ex) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/hutch/acknowledgements/nack_on_all_failures.rb', line 9 def handle(delivery_info, properties, broker, ex) prefix = "message(#{properties. || '-'}): " logger.debug "#{prefix} nacking message" broker.nack(delivery_info.delivery_tag) true end |