Crabbit::ConsumerOptions
Configures subscription position, credit, processing, offset storage, filtering, Single Active Consumer behavior, and recovery.
Constructors
Creates consumer options.
initial_credit is measured in chunks, while buffer_size is measured in logical messages. Callback consumers use concurrency handler fibers; pull consumers ignore it. Broker filtering accepts multiple OR-matched filters and can optionally include unfiltered messages.
Automatic storage requires name. auto_store_every stores after a
number of processed deliveries, and auto_store_interval stores the
latest contiguous processed offset periodically. With Single Active
Consumer enabled, one of the update callbacks may choose the offset each
time the subscription becomes active or inactive.
Instance methods
Returns the optional processed-message threshold for automatic offset storage.