A registry is used to associate actors to IDs or atoms (names). More...
|using||name_map = std::unordered_map< atom_value, strong_actor_ptr >|
|strong_actor_ptr||get (actor_id key) const|
|Returns the the local actor associated to |
|void||put (actor_id key, strong_actor_ptr val)|
|Associates a local actor with its ID. |
|void||erase (actor_id key)|
|Removes an actor from this registry, leaving |
|Increases running-actors-count by one. |
|Decreases running-actors-count by one. |
|size_t||running () const|
|Returns the number of currently running actors. |
|void||await_running_count_equal (size_t expected) const|
|Blocks the caller until running-actors-count becomes |
|strong_actor_ptr||get (atom_value key) const|
|Returns the actor associated with |
|void||put (atom_value key, strong_actor_ptr value)|
|Associates given actor to |
|void||erase (atom_value key)|
|Removes a name mapping. |
|name_map||named_actors () const|
A registry is used to associate actors to IDs or atoms (names).
This allows a middleman to lookup actor handles after receiving actor IDs via the network and enables developers to use well-known names to identify important actors independent from their ID at runtime. Note that the registry does not contain all actors of an actor system. The middleman registers actors as needed.
Blocks the caller until running-actors-count becomes
expected (must be either 0 or 1).
Removes an actor from this registry, leaving
reason for future reference.