public class TestRateLimiter extends Object
Constructor and Description |
---|
TestRateLimiter() |
Modifier and Type | Method and Description |
---|---|
int |
testCanExecuteByRate(RateLimiter limiter,
int rate) |
void |
testCanExecuteOfAverageIntervalRateLimiter() |
void |
testCanExecuteOfFixedIntervalRateLimiter() |
void |
testFixedIntervalResourceAvailability() |
void |
testLimiterBySmallerRate() |
void |
testOverconsumptionAverageIntervalRefillStrategy() |
void |
testOverconsumptionFixedIntervalRefillStrategy() |
void |
testRefillOfAverageIntervalRateLimiter() |
void |
testRefillOfFixedIntervalRateLimiter() |
void |
testWaitIntervalTimeUnitDays() |
void |
testWaitIntervalTimeUnitHours() |
void |
testWaitIntervalTimeUnitMinutes() |
void |
testWaitIntervalTimeUnitSeconds() |
public void testWaitIntervalTimeUnitSeconds()
public void testWaitIntervalTimeUnitMinutes()
public void testWaitIntervalTimeUnitHours()
public void testWaitIntervalTimeUnitDays()
public void testOverconsumptionAverageIntervalRefillStrategy()
public void testOverconsumptionFixedIntervalRefillStrategy() throws InterruptedException
InterruptedException
public void testFixedIntervalResourceAvailability() throws Exception
Exception
public void testLimiterBySmallerRate() throws InterruptedException
InterruptedException
public void testCanExecuteOfAverageIntervalRateLimiter() throws InterruptedException
InterruptedException
public void testCanExecuteOfFixedIntervalRateLimiter() throws InterruptedException
InterruptedException
public int testCanExecuteByRate(RateLimiter limiter, int rate)
public void testRefillOfAverageIntervalRateLimiter() throws InterruptedException
InterruptedException
public void testRefillOfFixedIntervalRateLimiter() throws InterruptedException
InterruptedException