public interface ThrottleManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_THROTTLE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default Throttle |
getCountBased() |
Throttle |
getCountBased(java.lang.String throttleName)
获取基于次数的节流器
|
default Throttle |
getTimeBased() |
default Throttle |
getTimeBased(java.lang.String throttleName)
获取基于时间的节流器,单位:毫秒。
|
Throttle |
getTimeBased(java.lang.String throttleName,
long countDelay) |
static final java.lang.String DEFAULT_THROTTLE_NAME
default Throttle getTimeBased()
default Throttle getTimeBased(java.lang.String throttleName)
Throttle getTimeBased(java.lang.String throttleName, long countDelay)
default Throttle getCountBased()
Throttle getCountBased(java.lang.String throttleName)