void |
ConsumerEventListener.becameActive(Consumer<?> consumer,
int partitionId) |
Notified when the consumer group is changed, and the consumer becomes the active consumer.
|
void |
ConsumerEventListener.becameInactive(Consumer<?> consumer,
int partitionId) |
Notified when the consumer group is changed, and the consumer is still inactive or becomes inactive.
|
Message<T> |
ConsumerInterceptor.beforeConsume(Consumer<T> consumer,
Message<T> message) |
|
void |
ConsumerInterceptor.onAcknowledge(Consumer<T> consumer,
MessageId messageId,
java.lang.Throwable exception) |
This is called consumer sends the acknowledgment to the broker.
|
void |
ConsumerInterceptor.onAcknowledgeCumulative(Consumer<T> consumer,
MessageId messageId,
java.lang.Throwable exception) |
This is called consumer send the cumulative acknowledgment to the broker.
|
void |
ConsumerInterceptor.onAckTimeoutSend(Consumer<T> consumer,
java.util.Set<MessageId> messageIds) |
This method will be called when a redelivery from an acknowledge timeout occurs.
|
void |
ConsumerInterceptor.onNegativeAcksSend(Consumer<T> consumer,
java.util.Set<MessageId> messageIds) |
This method will be called when a redelivery from a negative acknowledge occurs.
|
default void |
MessageListener.reachedEndOfTopic(Consumer<T> consumer) |
Get the notification when a topic is terminated.
|
void |
MessageListener.received(Consumer<T> consumer,
Message<T> msg) |
This method is called whenever a new message is received.
|