public interface ChannelAwareBatchMessageListener extends ChannelAwareMessageListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onMessage(org.springframework.amqp.core.Message message,
com.rabbitmq.client.Channel channel)
Callback for processing a received Rabbit message.
|
void |
onMessageBatch(java.util.List<org.springframework.amqp.core.Message> messages,
com.rabbitmq.client.Channel channel) |
onMessagedefault void onMessage(org.springframework.amqp.core.Message message,
com.rabbitmq.client.Channel channel)
throws java.lang.Exception
ChannelAwareMessageListenerImplementors are supposed to process the given Message, typically sending reply messages through the given Session.
onMessage in interface ChannelAwareMessageListenermessage - the received AMQP message (never null)channel - the underlying Rabbit Channel (never null
unless called by the stream listener container).java.lang.Exception - Any.void onMessageBatch(java.util.List<org.springframework.amqp.core.Message> messages,
com.rabbitmq.client.Channel channel)
onMessageBatch in interface ChannelAwareMessageListener