Class DefaultThrottleManager
- java.lang.Object
-
- me.insidezhou.southernquiet.throttle.BaseThrottleManager
-
- me.insidezhou.southernquiet.throttle.DefaultThrottleManager
-
- All Implemented Interfaces:
ThrottleManager
public class DefaultThrottleManager extends BaseThrottleManager
-
-
Field Summary
-
Fields inherited from interface me.insidezhou.southernquiet.throttle.ThrottleManager
DEFAULT_THROTTLE_NAME
-
-
Constructor Summary
Constructors Constructor Description DefaultThrottleManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrottlecreateCountBased(java.lang.String throttleName)ThrottlecreateTimeBased(java.lang.String throttleName, long countDelay)-
Methods inherited from class me.insidezhou.southernquiet.throttle.BaseThrottleManager
getCountBased, getTimeBased
-
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
-
createTimeBased
public Throttle createTimeBased(java.lang.String throttleName, long countDelay)
- Specified by:
createTimeBasedin classBaseThrottleManager
-
createCountBased
public Throttle createCountBased(java.lang.String throttleName)
- Specified by:
createCountBasedin classBaseThrottleManager
-
-