Class DefaultErrorAcknowledgeHandler
java.lang.Object
com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.pull.DefaultErrorAcknowledgeHandler
- All Implemented Interfaces:
ErrorAcknowledgeHandler
By default, if consumption fails, the corresponding MessageQueue will always be
retried, that is, the consumption of other messages in the MessageQueue will be
blocked.
- Author:
- zkzlx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.integration.acks.AcknowledgmentCallback.Statushandler(org.springframework.messaging.Message<?> message) Ack state handling, including receive, reject, and retry, when a consumption exception occurs.
-
Constructor Details
-
DefaultErrorAcknowledgeHandler
public DefaultErrorAcknowledgeHandler()
-
-
Method Details
-
handler
public org.springframework.integration.acks.AcknowledgmentCallback.Status handler(org.springframework.messaging.Message<?> message) Ack state handling, including receive, reject, and retry, when a consumption exception occurs.- Specified by:
handlerin interfaceErrorAcknowledgeHandler- Parameters:
message- message- Returns:
- see
AcknowledgmentCallback.Status
-