Module config_handler

Module responsible for handling configuration.

Description

Module responsible for handling configuration. These settings can be altered with custom settings in the application environment.

Function Index

election_delay/0Returns the configured election delay.
post_election_hooks/0Returns the configured post election hooks.
pre_election_hooks/0Returns the configured pre election hooks.
startup_hooks_enabled/0Returns the configured startup hooks enabled flag.
strategy_module/0Returns the configured strategy module.
sync_start/0Returns the configured sync_start flag.

Function Details

election_delay/0

election_delay() -> Delay::integer()

Returns the configured election delay. Default value is 1000 (1 second).

post_election_hooks/0

post_election_hooks() -> Hooks::[{module(), function(), Args::list()}]

Returns the configured post election hooks. Default value is [].

pre_election_hooks/0

pre_election_hooks() -> Hooks::[{module(), function(), Args::list()}]

Returns the configured pre election hooks. Default value is [].

startup_hooks_enabled/0

startup_hooks_enabled() -> any()

Returns the configured startup hooks enabled flag. When turned off the post or pre election hooks will not be executed on the startup. Default value is true.

strategy_module/0

strategy_module() -> StrategyModule::module()

Returns the configured strategy module. Default value is runtime_high_strategy (Node with the highest runtime).

sync_start/0

sync_start() -> SyncStart::boolean()

Returns the configured sync_start flag. Default value is true.


Generated by EDoc