Module: AMQ::Client::Async::ProtocolMethodHandlers

Included in:
Channel, Consumer, Exchange, Queue
Defined in:
lib/amq/client/async/entity.rb

Overview

RegisterEntityMixin

Instance Method Summary collapse

Instance Method Details

#handle(klass, &block) ⇒ Object



24
25
26
# File 'lib/amq/client/async/entity.rb', line 24

def handle(klass, &block)
  AMQ::Client::HandlersRegistry.register(klass, &block)
end

#handlersObject



28
29
30
# File 'lib/amq/client/async/entity.rb', line 28

def handlers
  AMQ::Client::HandlersRegistry.handlers
end