Behaviours: sbroker_meter.
References
See also: sregulator.
Updates a list of regulators with the relative time of a queue
after a random interval. Regulators are updated with sregulator:cast/2
and
any errors sending the update are ignored.
sregulator_update_meter
can be used as the sbroker_meter
in a sbroker
or a sregulator
. Its argument is of the form:
[{Regulator :: sregulator:regulator(), Queue :: ask | ask_r, Update :: pos_integer()}, ...}].
Regulator
is a regulator process to update with the approximate relative
time of queue Queue
with updates uniformly distributed from 0.5 * Update
to 1.5 * Update
milliseconds. This random interval is used to prevent
synchronisation of update messages and their side effects, see reference.
Generated by EDoc, Sep 29 2016, 17:17:28.