Skip to content

AckPolicy

nats.js.api.AckPolicy #

Bases: str, Enum

Policies defining how messages should be acknowledged.

If an ack is required but is not received within the AckWait window, the message will be redelivered.

References
  • Consumers, AckPolicy <https://docs.nats.io/jetstream/concepts/consumers#ackpolicy>_

NONE class-attribute instance-attribute #

NONE = 'none'

ALL class-attribute instance-attribute #

ALL = 'all'

EXPLICIT class-attribute instance-attribute #

EXPLICIT = 'explicit'