pub struct ProjectorConfig {
pub batch_events_max: usize,
pub batch_bytes_max: usize,
pub max_apply_latency_ms: u64,
pub poll_interval_ms: u64,
pub max_lag_before_throttle: u64,
}Expand description
Configuration for the projector
Fields§
§batch_events_max: usizeMaximum number of events per batch Default: 1000
batch_bytes_max: usizeMaximum bytes per batch Default: 4MB
max_apply_latency_ms: u64Maximum apply latency in milliseconds Projector tries to commit at least every N ms Default: 100ms
poll_interval_ms: u64Poll interval when caught up (milliseconds) Default: 10ms
max_lag_before_throttle: u64Maximum lag before throttling (number of events) Default: 100000
Implementations§
Source§impl ProjectorConfig
impl ProjectorConfig
pub fn new() -> Self
pub fn with_batch_events_max(self, max: usize) -> Self
pub fn with_batch_bytes_max(self, max: usize) -> Self
pub fn with_max_apply_latency_ms(self, ms: u64) -> Self
Trait Implementations§
Source§impl Clone for ProjectorConfig
impl Clone for ProjectorConfig
Source§fn clone(&self) -> ProjectorConfig
fn clone(&self) -> ProjectorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectorConfig
impl Debug for ProjectorConfig
Source§impl Default for ProjectorConfig
impl Default for ProjectorConfig
Source§impl<'de> Deserialize<'de> for ProjectorConfig
impl<'de> Deserialize<'de> for ProjectorConfig
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 ProjectorConfig
impl RefUnwindSafe for ProjectorConfig
impl Send for ProjectorConfig
impl Sync for ProjectorConfig
impl Unpin for ProjectorConfig
impl UnwindSafe for ProjectorConfig
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