Skip to content

Commit

Permalink
add hook to execute after consume for pop (#3780)
Browse files Browse the repository at this point in the history
  • Loading branch information
cserwen committed Feb 14, 2022
1 parent 631405e commit de76e06
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ public void run() {

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()
Expand Down

0 comments on commit de76e06

Please sign in to comment.