Elistrix.Dispatcher
Registers commands and dispatches calls to them.
Currently, the dispatcher is also responsible for figuring out if a command’s trip status is accurate (seeing if we’ve updated values recently enough) and updating it before call requests are fulfilled.
Summary↑
register(cmd_name, fun, thresholds \\ %{__struct__: Elistrix.Thresholds, error_threshold: 0.1, latency_threshold: 500, window_length: 10}) |
run(cmd_name, args \\ []) |
start_link(opts \\ []) |
stop() |
Functions
register(cmd_name, fun, thresholds \\ %{__struct__: Elistrix.Thresholds, error_threshold: 0.1, latency_threshold: 500, window_length: 10})