Class: Qpid::Proton::MessagingHandler

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#optionsHash (readonly)

Returns handler options, see #initialize.

Returns:

  • (Hash)

    handler options, see #initialize



37
38
39
# File 'lib/core/messaging_handler.rb', line 37

def options
  @options
end