Optional
autoSet whether the limiter should start to process the jobs automatically
Optional
bucketSet the bucket size for the rate limiter
0
If the bucket size is 0, only concurrency
and delay
will be used to limit the rate of the
jobs. If the bucket size is greater than 0, the consumption of the tokens will be used to
limit the rate of the jobs. The bucket size is the maximum number of tokens that can be
consumed in the interval. The interval is defined by the tokensPerInterval
and interval
properties.
Optional
concurrencyThe maximum number of concurrent jobs
Optional
delayDelay between each job in milliseconds
Optional
highThe maximum number of jobs in the queue
Optional
intervalDefine the interval in milliseconds
Optional
penaltyThe penalty for the BLOCK strategy in milliseconds
Optional
retrySet the default options for the retry process of the jobs
Optional
strategyThe strategy to use when the queue length reaches highWater
Optional
tokensDefine the number of tokens that will be added to the bucket at the beginning of the interval
Represents the limiter options