Class: Qpid::Proton::MessagingHandler
- Inherits:
-
Object
- Object
- Qpid::Proton::MessagingHandler
- Defined in:
- lib/core/messaging_handler.rb
Overview
A handler for AMQP messaging events.
Subclass the handler and provide the #on_xxx methods with your event-handling code.
An AMQP endpoint (connection, session or link) must be opened and closed at each end. Normally proton responds automatically to an incoming open/close. You can prevent the automatic response by raising StopAutoResponse from #on_xxx_open
or #on_xxx_close
. The application becomes responsible for calling #open/#close at a later point.
Note: If a MessagingHandler method raises an exception, it will stop the Container that the handler is running in. See Container#run
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
Handler options, see #initialize.
Instance Attribute Details
#options ⇒ Hash (readonly)
Returns handler options, see #initialize.
37 38 39 |
# File 'lib/core/messaging_handler.rb', line 37 def @options end |