DispatcherSettingsBuilder

open class DispatcherSettingsBuilder<M : Mappings, T : DispatcherSettingsBuilder<M, T>>(moduleType: String, mappingsSupplier: () -> M) : RuleModuleSettingsBuilder<T>

A settings builder class to support building of settings relevant to Dispatcher implementations.

Inheritors

Constructors

Link copied to clipboard
constructor(moduleType: String, mappingsSupplier: () -> M)

Functions

Link copied to clipboard

Returns the complete Module settings as configured by this ModuleSettingsBuilder.

Link copied to clipboard
fun setEnabled(enabled: Boolean): T

Sets the resulting Module to be permanently enabled/disabled. Local/Remote settings sources will be overridden by this

Link copied to clipboard
fun setMappings(mappings: Callback<M>): T
fun setMappings(mappings: M.() -> Unit): T

Set the mappings for this module.

Link copied to clipboard
fun setOrder(order: Int): T

Sets the order in which the Module needs to be initialized.

Link copied to clipboard
fun setRules(rules: Rule<String>): T

Sets the rules that this Module needs to match in order to process an event (e.g. collection or dispatching)