public abstract class AbstractThrottleCounter extends Object implements ThrottleCounter
ThrottleCounter
interface.Constructor and Description |
---|
AbstractThrottleCounter() |
Modifier and Type | Method and Description |
---|---|
int |
count(ThrottleScope throttleScope,
int intervalSec)
Counts requests for specified throttle scope and time interval.
|
protected abstract int |
doCount(ThrottleScope throttleScope,
int intervalSec)
Counts requests for specified throttle scope and time interval.
|
public final int count(ThrottleScope throttleScope, int intervalSec)
ThrottleCounter
count
in interface ThrottleCounter
throttleScope
- the throttle scopeintervalSec
- the time interval in secondsprotected abstract int doCount(ThrottleScope throttleScope, int intervalSec)
throttleScope
- the throttle scopeintervalSec
- the time interval in secondsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.