Interface ThrottleManager
-
- All Known Implementing Classes:
BaseThrottleManager,DefaultThrottleManager
public interface ThrottleManager节流管理器
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_THROTTLE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ThrottlegetCountBased()ThrottlegetCountBased(java.lang.String throttleName)获取基于次数的节流器default ThrottlegetTimeBased()default ThrottlegetTimeBased(java.lang.String throttleName)获取基于时间的节流器,单位:毫秒。ThrottlegetTimeBased(java.lang.String throttleName, long countDelay)
-
-
-
Field Detail
-
DEFAULT_THROTTLE_NAME
static final java.lang.String DEFAULT_THROTTLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimeBased
default Throttle getTimeBased()
-
getTimeBased
default Throttle getTimeBased(java.lang.String throttleName)
获取基于时间的节流器,单位:毫秒。
-
getTimeBased
Throttle getTimeBased(java.lang.String throttleName, long countDelay)
-
getCountBased
default Throttle getCountBased()
-
getCountBased
Throttle getCountBased(java.lang.String throttleName)
获取基于次数的节流器
-
-