Class AcknowledgementCoordinator

java.lang.Object
io.smallrye.reactive.messaging.providers.helpers.AcknowledgementCoordinator

public class AcknowledgementCoordinator extends Object
A utility class than orchestrate the (negative-)acknowledgment of a specified message based on the ack/nack of a set of messages.

A coordinator is created with a specific input message. For each message that needs to be tracked, the track method is called, which returned a modified message. When all the added messages are acked, the coordinator acks the input message. When one of the added message is nacked, the coordinator nacks the input message with the same reason.

  • Constructor Details

    • AcknowledgementCoordinator

      public AcknowledgementCoordinator(Message<?> input)
  • Method Details