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