class Qpid::Proton::MessagingHandler

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}

Attributes

options[R]

@return [Hash] handler options, see {#initialize}