Class: Hutch::Acknowledgements::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hutch/acknowledgements/base.rb

Overview

Defines acknowledgement handler interface.

Direct Known Subclasses

NackOnAllFailures

Instance Method Summary collapse

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.

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/hutch/acknowledgements/base.rb', line 11

def handle(delivery_info, properties, broker, ex)
  raise NotImplementedError.new
end