pub enum ClaimMode {
ClaimAllPending,
ClearBacklog {
min_idle: Duration,
max_idle: Option<Duration>,
},
Autoclaim {
min_idle: Duration,
},
NewOnly,
}
Expand description
Claim modes governing work-stealing from other consumers
Variants§
ClaimAllPending
Claim all pending entries from other consumers irregardless of min-idle-time until none remain while concurrently processing new entries until shutdown. This is useful for facilitating work-resumation for use cases in which there’s guaranteed to be at most one consumer and a restart occurs; such case requires no idle-delay to claim pending work because it can be reasoned the old consumer is offline and has no pending work in progress.
ClearBacklog
Process new entries until shutdown and while concurrently clearing the idle-pending backlog until none remain and max_idle has elapsed
Fields
Autoclaim
Process new entries until shutdown while continuously autoclaiming entries from other consumers that have not been acknowledged within the span of min_idle
Fields
NewOnly
Only process new entries