public interface MessageListener<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
default void |
reachedEndOfTopic(Consumer<T> consumer)
Get the notification when a topic is terminated
|
void |
received(Consumer<T> consumer,
Message<T> msg)
This method is called whenever a new message is received.
|
void received(Consumer<T> consumer, Message<T> msg)
consumer - the consumer that received the messagemsg - the message objectCopyright © 2017–2019 Apache Software Foundation. All rights reserved.