AMQ entities, as implemented by AMQ::Client, have callbacks and can run them
when necessary.
@note Exchanges and queues implementation is based on this class.
@abstract
Attributes
callbacks[R]
@return [Array<call>]
Public Class Methods
new(connection)click to toggle source
# File lib/amq/client/async/entity.rb, line 56definitialize(connection)
@connection = connection# Be careful with default values for #ruby hashes: h = Hash.new(Array.new); h[:key] ||= 1# won't assign anything to :key. MK.@callbacks = Hash.newend