NATS::JetStream::ConsumerConfig
Inherits NATS::JetStream::Entity / JSON::Serializable / Struct / Value / Object
Constructors
Instance methods
The initial starting mode of the consumer: all, last, new, by-start_sequence or by_start_time
The subject to deliver observed messages, when not set, a pull-based Consumer is created
The name of the Consumer, specifying this will persist the consumer to the NATS server
When consuming from a Stream with many subjects, or wildcards, select only a specific incoming subjects, supports wildcards
When consuming from a Stream with many subjects, or wildcards, select only a specific incoming subjects, supports wildcards
The maximum number of messages without acknowledgement that can be outstanding, once this limit is reached message delivery will be suspended
Maximum number of times a message will be delivered via this consumer. Use this to avoid poison pills crashing all your services forever.
// Pull based options.
MaxRequestBatch int json:"max_batch,omitempty"
MaxRequestExpires time.Duration json:"max_expires,omitempty"
MaxRequestMaxBytes int json:"max_bytes,omitempty"
The maximum number of messages that can be requested from a pull consumer
When first consuming messages from the Stream start at this particular message in the set
OptStartTime When first consuming messages from the Stream start with messages on or after this time
What percentage of acknowledgements should be samples for observability, 0-100