public interface BatchMessageListener extends MessageListener
Modifier and Type | Method and Description |
---|---|
default void |
onMessage(Message message)
Delivers a single message.
|
void |
onMessageBatch(List<Message> messages)
Delivers a batch of messages.
|
containerAckMode
default void onMessage(Message message)
MessageListener
onMessage
in interface MessageListener
message
- the message.void onMessageBatch(List<Message> messages)
MessageListener
onMessageBatch
in interface MessageListener
messages
- the messages.