接口 ReaderListener<T>
- 所有超级接口:
Serializable
A listener that will be called in order for every message received.
-
方法概要
-
方法详细资料
-
received
This method is called whenever a new message is received.Messages are guaranteed to be delivered in order and from the same thread for a single consumer
This method will only be called once for each message, unless either application or broker crashes.
Application is responsible of handling any exception that could be thrown while processing the message.
- 参数:
reader- the Reader object from where the message was receivedmsg- the message object
-
reachedEndOfTopic
Get the notification when a topic is terminated.- 参数:
reader- the Reader object associated with the terminated topic
-