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§
Sourcefn max_cycle_time(&self) -> Duration
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
Sourcefn build_process(
&self,
task_id: IdBuilder,
send_to_master: SendToMaster,
) -> ProcessInstance
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