View Source Actors.Registry.LoadBalance.Strategy behaviour (spawn v2.0.0-RC8)

LoadBalance.Strategy Define an interface to allow the search of actors in the Distributed Registry.

Summary

Types

hosts()

@type hosts() :: list()

opts()

@type opts() :: Keyword.t()

Callbacks

next_host(hosts, opts)

@callback next_host(hosts(), opts()) :: {:ok, node(), list()} | {:not_found, nil, []}