qq31715879 opened a new issue, #589:
URL: https://github.com/apache/rocketmq-spring/issues/589

   手动触发重新消费消息
   org\apache\rocketmq\client\impl\ClientRemotingProcessor.java
   
    @Override
       public RemotingCommand processRequest(ChannelHandlerContext ctx,
           RemotingCommand request) throws RemotingCommandException {
           switch (request.getCode()) {
               case RequestCode.CHECK_TRANSACTION_STATE:
                   return this.checkTransactionState(ctx, request);
               case RequestCode.NOTIFY_CONSUMER_IDS_CHANGED:
                   return this.notifyConsumerIdsChanged(ctx, request);
               case RequestCode.RESET_CONSUMER_CLIENT_OFFSET:
                   return this.resetOffset(ctx, request);
               case RequestCode.GET_CONSUMER_STATUS_FROM_CLIENT:
                   return this.getConsumeStatus(ctx, request);
   
               case RequestCode.GET_CONSUMER_RUNNING_INFO:
                   return this.getConsumerRunningInfo(ctx, request);
   
               case RequestCode.CONSUME_MESSAGE_DIRECTLY:
                   return this.consumeMessageDirectly(ctx, request);
   
               case RequestCode.PUSH_REPLY_MESSAGE_TO_CLIENT:
                   return this.receiveReplyMessage(ctx, request);
               default:
                   break;
           }
           return null;
       }
   
   此方法consumeMessageDirectly, 没有源码内有走ConsumeMessageHook


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to