The following tables list the members exposed by MessageListenerAdapter.
Name | Description | |
---|---|---|
![]() | MessageListenerAdapter Constructor | Overloaded. Initializes a new instance of the MessageListenerAdapter class with default settings. |
Name | Description | |
---|---|---|
![]() ![]() | ORIGINAL_DEFAULT_HANDLER_METHOD | The default handler method name. |
Name | Description | |
---|---|---|
![]() | DefaultHandlerMethod | 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"}. |
![]() | DefaultResponseRoutingKey | 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. |
![]() | HandlerObject | Gets or sets the handler object to delegate message listening to. |
![]() | ImmediatePublish | |
![]() | MandatoryPublish | |
![]() | MessageConverter | 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. |
Name | Description | |
---|---|---|
![]() | OnMessage | Overloaded.
Rabbit Spring.Messaging.Amqp.Core.IMessageListener entry point.
Delegates the message to the target listener method, with appropriate conversion of the message arguments |
Name | Description | |
---|---|---|
![]() | BuildMessage | Builds a Rabbit message to be sent as response based on the given result object. |
![]() | GetHandlerMethodName | 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. |
![]() | GetResponseReplyTo | Determine a response destination for the given message. |
![]() | HandleListenerException |
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. |
![]() | HandleResult | Handles the given result object returned from the listener method, sending a response message back. |
![]() | InitDefaultStrategies | Initialize the default implementations for the adapter's strategies. |
![]() | PostProcessChannel | Post-process the given message producer before using it to send the response. The default implementation is empty. |
![]() | PostProcessResponse | 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. |
![]() | SendResponse | Sends the given response message to the given destination. |