Class RocketMQAckCallback
java.lang.Object
com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.pull.RocketMQAckCallback
- All Implemented Interfaces:
org.springframework.integration.acks.AcknowledgmentCallback,org.springframework.integration.acks.SimpleAcknowledgment
public class RocketMQAckCallback
extends Object
implements org.springframework.integration.acks.AcknowledgmentCallback
A pollable
MessageSource for RocketMQ.- Author:
- zkzlx
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.acks.AcknowledgmentCallback
org.springframework.integration.acks.AcknowledgmentCallback.Status -
Constructor Summary
ConstructorsConstructorDescriptionRocketMQAckCallback(org.apache.rocketmq.client.consumer.DefaultLitePullConsumer consumer, org.apache.rocketmq.common.message.MessageQueue messageQueue, org.apache.rocketmq.common.message.MessageExt messageExt) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(org.springframework.integration.acks.AcknowledgmentCallback.Status status) booleanbooleanvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.acks.AcknowledgmentCallback
acknowledge
-
Constructor Details
-
RocketMQAckCallback
public RocketMQAckCallback(org.apache.rocketmq.client.consumer.DefaultLitePullConsumer consumer, org.apache.rocketmq.common.message.MessageQueue messageQueue, org.apache.rocketmq.common.message.MessageExt messageExt)
-
-
Method Details
-
isAcknowledged
public boolean isAcknowledged()- Specified by:
isAcknowledgedin interfaceorg.springframework.integration.acks.AcknowledgmentCallback
-
noAutoAck
public void noAutoAck()- Specified by:
noAutoAckin interfaceorg.springframework.integration.acks.AcknowledgmentCallback
-
isAutoAck
public boolean isAutoAck()- Specified by:
isAutoAckin interfaceorg.springframework.integration.acks.AcknowledgmentCallback
-
acknowledge
public void acknowledge(org.springframework.integration.acks.AcknowledgmentCallback.Status status) - Specified by:
acknowledgein interfaceorg.springframework.integration.acks.AcknowledgmentCallback
-