mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 05:44:03 +08:00
add hook to execute after consume for pop (#3780)
This commit is contained in:
+3
@@ -455,6 +455,9 @@ public class ConsumeMessagePopConcurrentlyService implements ConsumeMessageServi
|
||||
|
||||
if (ConsumeMessagePopConcurrentlyService.this.defaultMQPushConsumerImpl.hasHook()) {
|
||||
consumeMessageContext.getProps().put(MixAll.CONSUME_CONTEXT_TYPE, returnType.name());
|
||||
consumeMessageContext.setStatus(status.toString());
|
||||
consumeMessageContext.setSuccess(ConsumeConcurrentlyStatus.CONSUME_SUCCESS == status);
|
||||
ConsumeMessagePopConcurrentlyService.this.defaultMQPushConsumerImpl.executeHookAfter(consumeMessageContext);
|
||||
}
|
||||
|
||||
ConsumeMessagePopConcurrentlyService.this.getConsumerStatsManager()
|
||||
|
||||
Reference in New Issue
Block a user