Interface ChannelAwareBatchMessageListener
- All Superinterfaces:
ChannelAwareMessageListener
,MessageListener
- All Known Implementing Classes:
BatchMessagingMessageListenerAdapter
Used to receive a batch of messages if the container supports it.
- Since:
- 2.2
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Callback for processing a received Rabbit message.void
onMessageBatch
(List<Message> messages, com.rabbitmq.client.Channel channel) Methods inherited from interface org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener
onMessage
Methods inherited from interface org.springframework.amqp.core.MessageListener
containerAckMode, isAsyncReplies, onMessageBatch
-
Method Details
-
onMessage
Description copied from interface:ChannelAwareMessageListener
Callback for processing a received Rabbit message.Implementors are supposed to process the given Message, typically sending reply messages through the given Session.
- Specified by:
onMessage
in interfaceChannelAwareMessageListener
- Parameters:
message
- the received AMQP message (nevernull
)channel
- the underlying Rabbit Channel (nevernull
unless called by the stream listener container).- Throws:
Exception
- Any.
-
onMessageBatch
- Specified by:
onMessageBatch
in interfaceChannelAwareMessageListener
-