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 TypeMethodDescriptionbooleanack(boolean rejected, org.springframework.messaging.Message<WorkflowEvent> message, Duration delay) Perform ack or nack on a messagebooleanWhether capable of handling messages for this binder type
-
Constructor Details
-
KafkaAck
public KafkaAck()
-
-
Method Details
-
canHandle
Description copied from interface:AckWhether 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:AckPerform ack or nack on a message- Specified by:
ackin 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.
-