SuperWorker.Supervisor.Constants.Validation (SuperWorker v0.3.6)
View SourceProvides validation functions for various constants and parameters in the SuperWorker system.
Summary
Functions
Calculates the default number of partitions based on the number of online schedulers.
Default queue length for chains.
Maximum queue length for chains.
Minimum queue length for chains.
Validates if a given queue length is within the allowed range.
Validates if a given restart strategy is valid for a specific worker type.
Validates if a given send type is valid for chains.
Validates if a given shutdown type is valid.
Validates if a given worker type is valid.
Functions
@spec default_partitions() :: pos_integer()
Calculates the default number of partitions based on the number of online schedulers.
@spec default_queue_length() :: non_neg_integer()
Default queue length for chains.
@spec max_queue_length() :: non_neg_integer()
Maximum queue length for chains.
@spec min_queue_length() :: non_neg_integer()
Minimum queue length for chains.
Validates if a given queue length is within the allowed range.
Validates if a given restart strategy is valid for a specific worker type.
Validates if a given send type is valid for chains.
Validates if a given shutdown type is valid.
Validates if a given worker type is valid.