Spex.InstanceManager.DistributedInstanceManager.DistributionFactorState (spex v0.1.0)

Copy Markdown View Source

Agent storing the configured distribution factor.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the currently configured distribution factor.

Starts the distribution-factor agent.

Types

distribution_factor()

@type distribution_factor() :: non_neg_integer()

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get()

@spec get() :: distribution_factor()

Returns the currently configured distribution factor.

start_link(df)

@spec start_link(distribution_factor()) :: Agent.on_start()

Starts the distribution-factor agent.