RateLimiterUpdateLimits Method
Updates the limits associated with this rate limiter. Note, after this update, the tokens will be completely resupplied.
Namespace: Gemstone.ThreadingAssembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.171 -- Release Build+1fadf9883481af612a0ac41fa386e4d8235ed765
public void UpdateLimits(
double tokensPerSecond,
int maxTokensQueue
)
Public Sub UpdateLimits (
tokensPerSecond As Double,
maxTokensQueue As Integer
)
public:
void UpdateLimits(
double tokensPerSecond,
int maxTokensQueue
)
function UpdateLimits(tokensPerSecond, 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