shopify_graphql v1.2.0 Shopify.GraphQL.Limiter.Partition
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Determines whether the partition is in an idle state.
Returns the name of a Shopify.GraphQL.Limiter.Partition
process.
Starts a Shopify.GraphQL.Limiter.Partition
supervision tree and links it to
the current process.
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
idle?(parent, partition_id)
idle?(atom(), Shopify.GraphQL.Limiter.partition_id_t()) :: boolean()
Determines whether the partition is in an idle state.
A partition is considered idle when the producer's queue is empty and the consumer supervisor has no children.
name(parent, partition_id)
name(atom(), Shopify.GraphQL.Limiter.partition_id_t()) :: atom()
Returns the name of a Shopify.GraphQL.Limiter.Partition
process.
A partition process's name is a combination of the parent limiter's name
and a partition id. e.g. Shopify.GraphQL.Limiter.Partition:<partition_id>
.
Starts a Shopify.GraphQL.Limiter.Partition
supervision tree and links it to
the current process.
stop(parent, partition_id)
stop(atom(), Shopify.GraphQL.Limiter.partition_id_t()) :: :ok