Adap.Unit.Router

Route element to a node/process started on demand: Adap.Unit.Router.cast({mod,arg}=unit_spec,elem) will:

Processes are monitored in order to restart them on demand when they die.

A process specification is defined as a tuple {module,args}: module must implement behaviour Adap.Unit with previously described callbacks.

A Unit can represent : a GenServer, a pool of GenServers, a pool of node of GenServer, etc. The reference unit is a simple GenServer:

You can use Adap.Unit.Simple to take the default implementation for this kind of processing unit.

Source

Summary

cast(arg1, fun)
start_link()

Functions

cast(arg1, fun)
Source
start_link()
Source