Class KafkaAck
java.lang.Object
com.broadleafcommerce.workflow.messaging.KafkaAck
- All Implemented Interfaces:
Ack
Kafka specific implementation of
Ack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
ack
(boolean rejected, org.springframework.messaging.Message<WorkflowEvent> message, Duration delay) Perform ack or nack on a messageboolean
Whether capable of handling messages for this binder type
-
Constructor Details
-
KafkaAck
public KafkaAck()
-
-
Method Details
-
canHandle
Description copied from interface:Ack
Whether capable of handling messages for this binder type -
ack
public boolean ack(boolean rejected, org.springframework.messaging.Message<WorkflowEvent> message, Duration delay) Description copied from interface:Ack
Perform ack or nack on a message- Specified by:
ack
in interfaceAck
- Parameters:
rejected
- Whether the system rejected the workflow request. If so, should be a nack.message
- The message that was requested for execution.delay
- The delay should a nack be requested. The delay will elapse before the message is pulled again by a consumer.- Returns:
- Whether the ack or nack handling was performed. False if this instance is not capable of handling the message.
-