Interface NatsAcknowledgement

All Superinterfaces:
io.micronaut.messaging.Acknowledgement

public interface NatsAcknowledgement extends io.micronaut.messaging.Acknowledgement
A contract for acknowleding or rejecting messages.
Since:
4.0.0
Author:
Joachim Grimm
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    nackWithDelay(@NonNull Duration duration)
    nak acknowledges a JetStream message has been received but indicates that the message is not completely processed and should be sent again later, after at least the delay amount.

    Methods inherited from interface io.micronaut.messaging.Acknowledgement

    ack, nack
  • Method Details

    • nackWithDelay

      void nackWithDelay(@NonNull @NonNull Duration duration)
      nak acknowledges a JetStream message has been received but indicates that the message is not completely processed and should be sent again later, after at least the delay amount.
      Parameters:
      duration - Duration