Skip to content

DeliverPolicy

nats.js.api.DeliverPolicy #

Bases: str, Enum

When a consumer is first created, it can specify where in the stream it wants to start receiving messages.

This is the DeliverPolicy, and this enumeration defines allowed values.

References
  • Consumers, DeliverPolicy/OptStartSeq/OptStartTime <https://docs.nats.io/jetstream/concepts/consumers#deliverpolicy-optstartseq-optstarttime>_

ALL class-attribute instance-attribute #

ALL = 'all'

LAST class-attribute instance-attribute #

LAST = 'last'

NEW class-attribute instance-attribute #

NEW = 'new'

BY_START_SEQUENCE class-attribute instance-attribute #

BY_START_SEQUENCE = 'by_start_sequence'

BY_START_TIME class-attribute instance-attribute #

BY_START_TIME = 'by_start_time'

LAST_PER_SUBJECT class-attribute instance-attribute #

LAST_PER_SUBJECT = 'last_per_subject'