Property | Type | Description | |
---|---|---|---|
bucketTokenCapacity | long | ||
nextRefillTime | long | ||
ticksRefillInterval | long | ||
tokens | long |
Method | Description | |
---|---|---|
ShouldThrottle ( System.TimeSpan &waitTime ) : bool | ||
ShouldThrottle ( long n = 1 ) : bool | ||
ShouldThrottle ( long n, System.TimeSpan &waitTime ) : bool |
Method | Description | |
---|---|---|
TokenBucket ( long bucketTokenCapacity, long refillInterval, long refillIntervalInMilliSeconds ) : System | ||
UpdateTokens ( ) : void |
public ShouldThrottle ( System.TimeSpan &waitTime ) : bool | ||
waitTime | System.TimeSpan | |
return | bool |
public ShouldThrottle ( long n, System.TimeSpan &waitTime ) : bool | ||
n | long | |
waitTime | System.TimeSpan | |
return | bool |
protected TokenBucket ( long bucketTokenCapacity, long refillInterval, long refillIntervalInMilliSeconds ) : System | ||
bucketTokenCapacity | long | |
refillInterval | long | |
refillIntervalInMilliSeconds | long | |
return | System |