Class Qpid::Proton::Handler::MessagingHandler
In: lib/handler/messaging_handler.rb
Parent: Qpid::Proton::BaseHandler

A general purpose handler that simplifies processing events.

@example

Methods

Attributes

handlers  [R] 

Public Class methods

Creates a new instance.

@param [Fixnum] prefetch @param [Boolean] auto_accept @param [Boolean] auto_settle @param [Boolean] peer_close_is_error

Public Instance methods

Called when the remote peer accepts an outgoing message.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the connection is closed.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the peer initiates the closing of the connection.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the peer closes the connection with an error condition.

@param event [Qpid::Proton::Event::Event] The event.

Called when the socket is disconnected.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the link is closed.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the peer initiates the closing of the link.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the peer closes the link with an error condition.

@param event [Qpid::Proton::Event::Event] The event.

Called when a message is received.

The message itself can be obtained as a property on the event. For the purpose of referring to this message in further actions, such as explicitly accepting it) the delivery should be used. This is also obtainable vi a property on the event.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the event loop starts.

@param event [Qpid::Proton::Event::Event] The event.

Called when the remote peer rejects an outgoing message.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the remote peer releases an outgoing message.

Note that this may be in response to either the RELEASE or MODIFIED state as defined by the AMPQ specification.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the sender link has credit and messages can therefore be transferred.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the session is closed.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the peer initiates the closing of the session.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the peer closes the session with an error condition.

@param event [Qpid:Proton::Event::Event] The event.

Called when the remote peer has settled hte outgoing message.

This is the point at which it should never be retransmitted.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

Called when the event loop starts.

This method needs to be overridden.

@param event [Qpid::Proton::Event::Event] The event.

[Validate]