Spring.Messaging.Amqp.Rabbit
MessageListenerAdapter Class Members
See Also  Fields  Properties  Methods  Send Feedback
Spring.Messaging.Amqp.Rabbit.Listener.Adapter Namespace : MessageListenerAdapter Class


The following tables list the members exposed by MessageListenerAdapter.

Public Constructors

 NameDescription
Public ConstructorMessageListenerAdapter ConstructorOverloaded.  Initializes a new instance of the MessageListenerAdapter class with default settings.  
Top

Public Fields

 NameDescription
Public Fieldstatic (Shared in Visual Basic)ORIGINAL_DEFAULT_HANDLER_METHOD The default handler method name.  
Top

Public Properties

 NameDescription
Public PropertyDefaultHandlerMethod Gets or sets the default handler method to delegate to, for the case where no specific listener method has been determined. Out-of-the-box value is ORIGINAL_DEFAULT_HANDLER_METHOD ("HandleMessage"}.  
Public PropertyDefaultResponseRoutingKey Sets the default routing key to use when sending response messages. This will be applied in case of a request message that does not carry a "ReplyTo" property. Response destinations are only relevant for listener methods that return result objects, which will be wrapped in a response message and sent to a response destination.  
Public PropertyHandlerObject Gets or sets the handler object to delegate message listening to.  
Public PropertyImmediatePublish  
Public PropertyMandatoryPublish  
Public PropertyMessageConverter Gets or sets the message converter that will convert incoming Rabbit messages to listener method arguments, and objects returned from listener methods back to Rabbit messages.  
Top

Public Methods

 NameDescription
Public MethodOnMessageOverloaded.  Rabbit Spring.Messaging.Amqp.Core.IMessageListener entry point.

Delegates the message to the target listener method, with appropriate conversion of the message arguments

 
Top

Protected Methods

 NameDescription
Protected MethodBuildMessage Builds a Rabbit message to be sent as response based on the given result object.  
Protected MethodGetHandlerMethodName Gets the name of the listener method that is supposed to handle the given message. The default implementation simply returns the configured default listener method, if any.  
Protected MethodGetResponseReplyTo Determine a response destination for the given message.  
Protected MethodHandleListenerException Handle the given exception that arose during listener execution. The default implementation logs the exception at error level.

This method only applies when used with Spring.Messaging.Amqp.Core.IMessageListener. In case of the Spring Spring.Messaging.Amqp.Rabbit.Core.IChannelAwareMessageListener mechanism, exceptions get handled by the caller instead.

 
Protected MethodHandleResult Handles the given result object returned from the listener method, sending a response message back.  
Protected MethodInitDefaultStrategies Initialize the default implementations for the adapter's strategies.  
Protected MethodPostProcessChannel Post-process the given message producer before using it to send the response. The default implementation is empty.  
Protected MethodPostProcessResponse Post-process the given response message before it will be sent. The default implementation sets the response's correlation id to the request message's correlation id.  
Protected MethodSendResponse Sends the given response message to the given destination.  
Top

See Also

© 2010 All Rights Reserved.