public class ThrottleCounterMemoryImpl extends AbstractThrottleCounter
ThrottleCounter
interface.
Fast and enough-solution for one server solution but it's not sufficient for cluster environment.
Constructor and Description |
---|
ThrottleCounterMemoryImpl() |
Modifier and Type | Method and Description |
---|---|
protected int |
doCount(ThrottleScope throttleScope,
int intervalSec)
Counts requests for specified throttle scope and time interval.
|
count
protected int doCount(ThrottleScope throttleScope, int intervalSec)
AbstractThrottleCounter
doCount
in class AbstractThrottleCounter
throttleScope
- the throttle scopeintervalSec
- the time interval in secondsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.