Class: Proletariat::Drop

Inherits:
ExceptionHandler show all
Defined in:
lib/proletariat/exception_handler/drop.rb

Overview

Internal: Exception handler which just drops failed messages.

Instance Method Summary collapse

Methods inherited from ExceptionHandler

#actor_work, #initialize, #setup, #work_method

Methods included from Concerns::Logging

#log_info

Methods inherited from Actor

#on_message

Methods included from ActorCommon

included, #on_event

Constructor Details

This class inherits a constructor from Proletariat::ExceptionHandler

Instance Method Details

#work(message, to, headers) ⇒ Object

Public: Does nothing with the failed messages.

body - The failed message body. to - The failed message’s routing key. headers - The failed message’s headers.

Returns nil.



11
12
13
# File 'lib/proletariat/exception_handler/drop.rb', line 11

def work(message, to, headers)
  nil
end