pub struct DispatchRate {
pub dispatch_throttling_rate_in_msg: i32,
pub dispatch_throttling_rate_in_byte: i64,
pub rate_period_in_second: i32,
pub relative_to_publish_rate: bool,
}Expand description
Java DispatchRate — a sliding-window throttle (msg/sec + byte/sec
over a ratePeriodInSecond window). Shared shape between the
per-namespace consumer dispatch rate, the per-subscription dispatch
rate, and the cross-cluster replicator dispatch rate.
-1 on either rate dimension disables that axis of the throttle —
missing fields default to -1 (not 0) so a broker-omitted
dimension round-trips as “no throttle”, never as “throttle to
zero” (which would block consumer dispatch on the namespace).
Fields§
§dispatch_throttling_rate_in_msg: i32Throttle in messages/sec. -1 = unlimited.
dispatch_throttling_rate_in_byte: i64Throttle in bytes/sec. -1 = unlimited.
rate_period_in_second: i32Window size in seconds the throttle averages over.
relative_to_publish_rate: boolIf true, dispatch rate is interpreted as an addend on top of
the namespace publish rate rather than an absolute cap.
Trait Implementations§
Source§impl Clone for DispatchRate
impl Clone for DispatchRate
Source§fn clone(&self) -> DispatchRate
fn clone(&self) -> DispatchRate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DispatchRate
Source§impl Debug for DispatchRate
impl Debug for DispatchRate
Source§impl Default for DispatchRate
impl Default for DispatchRate
Source§impl<'de> Deserialize<'de> for DispatchRate
impl<'de> Deserialize<'de> for DispatchRate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DispatchRate
impl RefUnwindSafe for DispatchRate
impl Send for DispatchRate
impl Sync for DispatchRate
impl Unpin for DispatchRate
impl UnsafeUnpin for DispatchRate
impl UnwindSafe for DispatchRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more