Class BaseThrottleManager
- java.lang.Object
-
- me.insidezhou.southernquiet.throttle.BaseThrottleManager
-
- All Implemented Interfaces:
ThrottleManager
- Direct Known Subclasses:
DefaultThrottleManager
public abstract class BaseThrottleManager extends java.lang.Object implements ThrottleManager
-
-
Field Summary
-
Fields inherited from interface me.insidezhou.southernquiet.throttle.ThrottleManager
DEFAULT_THROTTLE_NAME
-
-
Constructor Summary
Constructors Constructor Description BaseThrottleManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ThrottlecreateCountBased(java.lang.String throttleName)abstract ThrottlecreateTimeBased(java.lang.String throttleName, long countDelay)ThrottlegetCountBased(java.lang.String throttleName)获取基于次数的节流器ThrottlegetTimeBased(java.lang.String throttleName, long countDelay)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface me.insidezhou.southernquiet.throttle.ThrottleManager
getCountBased, getTimeBased, getTimeBased
-
-
-
-
Method Detail
-
getTimeBased
public Throttle getTimeBased(java.lang.String throttleName, long countDelay)
- Specified by:
getTimeBasedin interfaceThrottleManager
-
createTimeBased
public abstract Throttle createTimeBased(java.lang.String throttleName, long countDelay)
-
getCountBased
public Throttle getCountBased(java.lang.String throttleName)
Description copied from interface:ThrottleManager获取基于次数的节流器- Specified by:
getCountBasedin interfaceThrottleManager
-
createCountBased
public abstract Throttle createCountBased(java.lang.String throttleName)
-
-