Trait ServantBuilderParameters

Source
pub trait ServantBuilderParameters {
    // Required methods
    fn max_cycle_time(&self) -> Duration;
    fn build_process(
        &self,
        task_id: IdBuilder,
        send_to_master: SendToMaster,
    ) -> ProcessInstance;
}
Expand description

Trait for defining servant builder parameters

Required Methods§

Source

fn max_cycle_time(&self) -> Duration

Max duration for master to servant query request

  • if this time is exceeded, the cluster master considers that the servant has broken down and kills him
Source

fn build_process( &self, task_id: IdBuilder, send_to_master: SendToMaster, ) -> ProcessInstance

build process instance

  • task_id: IdBuilder :
  • send_to_master: SendToMaster :
  • Output: process instance

Implementors§