Expand description
Per-delivery and per-batch context fields exposed to handlers.
A handler types its context parameter as Context<'_, StreamContext>, or binds one field as a
parameter with the core’s Ctx<K> extractor and a key from keys.
- StreamContext:
StreamContext, a stream delivery’s entry id, position, consumer group and seek handle, underkeys::EntryId,keys::Position,keys::ConsumerGroupandkeys::SeekHandle. - ConsumerGroup:
keys::ConsumerGroup, the group a stream subscription reads through. - StreamBatchContext:
StreamBatchContext, a stream batch handler’s context. - PubSubContext:
PubSubContext, the channel a message arrived on, underkeys::Channelandkeys::FromPattern. - FredPool:
keys::FredPoolandPoolContext, the connection pool on every form. - Commands:
keys::PipelineandPipelineContext, the round of a.pipeline()subscription. - Counts: the delivery count and idle time of the claiming modes ride the
DELIVERY_COUNT_HEADERandIDLE_MS_HEADERheaders.
Modules§
Structs§
- Pipeline
Context - The per-delivery context of a
.pipeline()subscription: the delivery’s round and the broker’s connection pool. - Pool
Context - The per-delivery context that carries the broker’s connection pool and nothing else: what a
handler taking
Ctx<keys::FredPool>alone reads, on every form. - PubSub
Context - Per-delivery context for a Redis Pub/Sub delivery (
RedisPubSubMessage). - Stream
Batch Context - Batch context for a batched Redis Streams subscription: what the whole subscription shares.
- Stream
Context - Per-delivery context for a Redis Streams delivery (
RedisMessage).