RateLimiterUpdateLimits Method

Updates the limits associated with this rate limiter. Note, after this update, the tokens will be completely resupplied.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.166 -- Release Build+55b93eb16d4a5b73f01a183dc992e29d98627d25
public void UpdateLimits(
	double tokensPerSecond,
	int maxTokensQueue
)

Parameters

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

See Also