|
|
|
@ -16,6 +16,8 @@
|
|
|
|
|
|
|
|
|
|
package com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.pull;
|
|
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
|
|
|
|
|
import org.apache.rocketmq.client.consumer.DefaultLitePullConsumer;
|
|
|
|
|
import org.apache.rocketmq.client.exception.MQClientException;
|
|
|
|
|
import org.apache.rocketmq.common.message.MessageExt;
|
|
|
|
@ -79,7 +81,7 @@ public class RocketMQAckCallback implements AcknowledgmentCallback {
|
|
|
|
|
switch (status) {
|
|
|
|
|
case REJECT:
|
|
|
|
|
case ACCEPT:
|
|
|
|
|
consumer.committed(messageQueue);
|
|
|
|
|
consumer.commit(Collections.singleton(messageQueue), false);
|
|
|
|
|
break;
|
|
|
|
|
case REQUEUE:
|
|
|
|
|
consumer.seek(messageQueue, offset);
|
|
|
|
|