RateLimiter Constructor

Creates a RateLimiter

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.174 -- Release Build+6575dd693dbd5e3d5a41dd1450ccb8ddc2885703
public RateLimiter(
	double tokensPerSecond = 10,
	int maxTokensQueue = 10
)

Parameters

tokensPerSecond  Double  (Optional)
The number of tokens per second that can be generated. Must be greater than zero and less than 1 billion
maxTokensQueue  Int32  (Optional)
The maximum number of tokens in the queue. Must be at least 1

See Also