Skip to main content

DEFAULT_GENERATION

Constant DEFAULT_GENERATION 

Source
pub const DEFAULT_GENERATION: i32 = -1;
Expand description

The default generation id used when a subscription carries no generation.

Corresponds to AbstractStickyAssignor.DEFAULT_GENERATION, which ConsumerPartitionAssignor.java:34 static-imports.

Stays a module-level constant rather than becoming an associated const: the Java class that declares it, AbstractStickyAssignor, is a client-side assignor and is out of scope per consumer-threading.md ยง20, so there is no translated type to host it on. It is referenced only within this file.