public abstract class BaseThrottleManager extends java.lang.Object implements ThrottleManager
DEFAULT_THROTTLE_NAME| Constructor and Description |
|---|
BaseThrottleManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract Throttle |
createCountBased(java.lang.String throttleName) |
abstract Throttle |
createTimeBased(java.lang.String throttleName) |
Throttle |
getCountBased(java.lang.String throttleName)
获取基于次数的节流器
|
Throttle |
getTimeBased(java.lang.String throttleName)
获取基于时间的节流器,单位:毫秒。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountBased, getTimeBasedpublic Throttle getTimeBased(java.lang.String throttleName)
ThrottleManagergetTimeBased in interface ThrottleManagerpublic abstract Throttle createTimeBased(java.lang.String throttleName)
public Throttle getCountBased(java.lang.String throttleName)
ThrottleManagergetCountBased in interface ThrottleManagerpublic abstract Throttle createCountBased(java.lang.String throttleName)