Class: Tochtli::ReplyQueue::Consumer
- Inherits:
-
Bunny::Consumer
- Object
- Bunny::Consumer
- Tochtli::ReplyQueue::Consumer
- Defined in:
- lib/tochtli/reply_queue.rb
Instance Method Summary collapse
-
#initialize(reply_queue, *args) ⇒ Consumer
constructor
A new instance of Consumer.
- #recover_from_network_failure ⇒ Object
Constructor Details
#initialize(reply_queue, *args) ⇒ Consumer
Returns a new instance of Consumer.
113 114 115 116 |
# File 'lib/tochtli/reply_queue.rb', line 113 def initialize(reply_queue, *args) super(*args) @reply_queue = reply_queue end |
Instance Method Details
#recover_from_network_failure ⇒ Object
118 119 120 121 122 123 124 125 126 |
# File 'lib/tochtli/reply_queue.rb', line 118 def recover_from_network_failure super @reply_queue.reconnect(@channel) rescue Exception logger = channel.connection.logger logger.error $! logger.error $!.backtrace.join("\n") raise end |