Module: RosettaQueue::MessageHandler
- Included in:
- Producer
- Defined in:
- lib/rosetta_queue/message_handler.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#adapter_proxy ⇒ Object
Returns the value of attribute adapter_proxy.
Class Method Summary collapse
Instance Method Summary collapse
- #ack ⇒ Object
- #destination ⇒ Object
- #handle_message(unfiltered_message) ⇒ Object
- #options_hash ⇒ Object
Instance Attribute Details
#adapter_proxy ⇒ Object
Returns the value of attribute adapter_proxy.
24 25 26 |
# File 'lib/rosetta_queue/message_handler.rb', line 24 def adapter_proxy @adapter_proxy end |
Class Method Details
.included(receiver) ⇒ Object
20 21 22 |
# File 'lib/rosetta_queue/message_handler.rb', line 20 def self.included(receiver) receiver.extend(ClassMethods) end |
Instance Method Details
#ack ⇒ Object
47 48 49 |
# File 'lib/rosetta_queue/message_handler.rb', line 47 def ack adapter_proxy.ack unless adapter_proxy.nil? end |
#destination ⇒ Object
26 27 28 |
# File 'lib/rosetta_queue/message_handler.rb', line 26 def destination self.class.destination end |
#handle_message(unfiltered_message) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/rosetta_queue/message_handler.rb', line 34 def () ExceptionHandler::handle(:publishing, lambda { { :message => Filters.safe_process_receiving(), :destination => destination, :action => :consuming, :options => } } ) do (Filters.process_receiving()) end end |
#options_hash ⇒ Object
30 31 32 |
# File 'lib/rosetta_queue/message_handler.rb', line 30 def self.class. end |