Class: Basquiat::Adapters::RabbitMq::AutoAcknowledge

Inherits:
BaseStrategy
  • Object
show all
Defined in:
lib/basquiat/adapters/rabbitmq/requeue_strategies/auto_acknowledge.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseStrategy

#ack, #initialize, #nack, #requeue, setup

Constructor Details

This class inherits a constructor from Basquiat::Adapters::RabbitMq::BaseStrategy

Class Method Details

.session_optionsObject



7
8
9
# File 'lib/basquiat/adapters/rabbitmq/requeue_strategies/auto_acknowledge.rb', line 7

def self.session_options
  { consumer: { manual_ack: false } }
end

Instance Method Details

#runObject



11
12
13
# File 'lib/basquiat/adapters/rabbitmq/requeue_strategies/auto_acknowledge.rb', line 11

def run(*)
  yield
end