Method: AMQ::Client::Async::Consumer#on_connection_interruption

Defined in:
lib/amq/client/async/consumer.rb

#on_connection_interruption(&block) ⇒ Object Also known as: after_connection_interruption

Defines a callback that will be executed after TCP connection is interrupted (typically because of a network failure). Only one callback can be defined (the one defined last replaces previously added ones).



141
142
143
# File 'lib/amq/client/async/consumer.rb', line 141

def on_connection_interruption(&block)
  self.redefine_callback(:after_connection_interruption, &block)
end