Actors.Actor.Entity.Supervisor (spawn v2.0.0-RC13)

View Source

Entity.Supervisor is the Supervisor of all Host Actors in the system. This in turn is Partitioned using a PartitionSupervisor. We use a hash function based on each Actor's child_spec to partition the actors so that the entire Supervisor is not overloaded and lessening the possibility of cascading failures.

Summary

Functions

Returns a specification to start this module under a supervisor.

Adds a Actor to the dynamic supervisor.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

lookup_or_create_actor(system, actor, opts \\ [])

@spec lookup_or_create_actor(
  Spawn.Actors.ActorSystem.t(),
  Spawn.Actors.Actor.t(),
  any()
) ::
  {:ok, any()}

Adds a Actor to the dynamic supervisor.

start_link(_)