public interface ConsumerInterceptor
ConsumerInterceptor is used to intercept consume operations of push consumer.| Modifier and Type | Method and Description |
|---|---|
void |
postReceive(Message message,
KeyValue attributes)
Invoked after the invocation of
MessageListener.onReceived(Message, MessageListener.Context). |
void |
preReceive(Message message,
KeyValue attributes)
Invoked before the invocation of
MessageListener.onReceived(Message, MessageListener.Context). |
void preReceive(Message message, KeyValue attributes)
MessageListener.onReceived(Message, MessageListener.Context).message - the message is actually receivedattributes - the extensible attributes delivered to the intercept threadvoid postReceive(Message message, KeyValue attributes)
MessageListener.onReceived(Message, MessageListener.Context).message - the message is actually receivedattributes - the extensible attributes delivered to the intercept threadCopyright © 2017–2018 OpenMessaging. All rights reserved.