Struct sim::models::batcher::Batcher [−][src]
pub struct Batcher { /* fields omitted */ }
Expand description
The batching process begins when the batcher receives a job. It will then accept additional jobs, adding them to a batch with the first job, until a max batching time or max batch size is reached - whichever comes first. If the simultaneous arrival of multiple jobs causes the max batch size to be exceeded, then the excess jobs will spillover into the next batching period. In this case of excess jobs, the next batching period begins immediately after the release of the preceding batch. If there are no excess jobs, the batcher will become passive, and wait for a job arrival to initiate the batching process.
Implementations
Trait Implementations
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
fn events_ext(
&mut self,
incoming_message: &ModelMessage,
services: &mut Services
) -> Result<(), SimulationError>
fn events_int(
&mut self,
services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
Auto Trait Implementations
impl RefUnwindSafe for Batcher
impl UnwindSafe for Batcher
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V