pub struct TimerAdmissionRoute {
pub engine: TimerEngineId,
pub format_version: u16,
pub max_delay_sec: u64,
pub admission_open: bool,
pub rejects_congested_slots: bool,
}Expand description
How new timer messages are admitted under one TimerStoreMode: the engine that owns them
and the limits that engine applies. Admission, recall handles and recall read this instead of
deciding per mode.
Fields§
§engine: TimerEngineIdEngine that owns the timer messages admitted now.
format_version: u16Format version stamped on each admitted message.
max_delay_sec: u64Longest delay the engine admits, in seconds.
admission_open: boolWhether the engine admits new timer messages at all.
rejects_congested_slots: boolWhether admission rejects a message whose wheel slot is congested.
Implementations§
Source§impl TimerAdmissionRoute
impl TimerAdmissionRoute
Sourcepub const fn for_mode(
mode: TimerStoreMode,
java_compat_max_delay_sec: u64,
extended_horizon_days: u16,
extended_admission_enable: bool,
native_max_delay_days: u16,
) -> Self
pub const fn for_mode( mode: TimerStoreMode, java_compat_max_delay_sec: u64, extended_horizon_days: u16, extended_admission_enable: bool, native_max_delay_days: u16, ) -> Self
Returns the route of mode. The Java-compatible engine admits up to
java_compat_max_delay_sec and checks wheel slot congestion; the Extended Timeline admits
up to extended_horizon_days while extended_admission_enable is set; the native engine
admits up to native_max_delay_days.
Sourcepub const fn max_delay_ms(&self) -> Option<u64>
pub const fn max_delay_ms(&self) -> Option<u64>
Longest admitted delay in milliseconds, or None when it does not fit in u64.