RateLimiter Constructor
Namespace: Gemstone.ThreadingAssembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
public RateLimiter(
double tokensPerSecond = 10,
int maxTokensQueue = 10
)
Public Sub New (
Optional tokensPerSecond As Double = 10,
Optional maxTokensQueue As Integer = 10
)
public:
RateLimiter(
double tokensPerSecond = 10,
int maxTokensQueue = 10
)
Gemstone.Threading.RateLimiter = function(tokensPerSecond, maxTokensQueue);
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