public interface ProxyThrottleOption extends Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ENABLED_OPTION |
static String |
GLOBAL_THROTTLE_OPTIONS_KEY |
static String |
MAX_TRAFFIC_DELAY_SECONDS_OPTION |
static String |
READ_THROTTLE_BYTES_PER_SECOND_OPTION |
static String |
THROTTLE_CHECK_INTERVAL_MILLS_OPTION |
static String |
WRITE_THROTTLE_BYTES_PER_SECOND_OPTION |
| 限定符和类型 | 方法和说明 |
|---|---|
short |
getId() |
long |
getMaxTrafficDelaySeconds() |
long |
getReadThrottleBytesPerSecond() |
long |
getThrottleCheckIntervalMills() |
long |
getWriteThrottleBytesPerSecond() |
boolean |
isEnabled() |
ProxyThrottleOption |
setEnabled(boolean enabled) |
ProxyThrottleOption |
setMaxTrafficDelaySeconds(long maxTrafficDelaySeconds) |
ProxyThrottleOption |
setReadThrottleBytesPerSecond(long readThrottleBytesPerSecond) |
ProxyThrottleOption |
setThrottleCheckIntervalMills(long throttleCheckIntervalMills) |
ProxyThrottleOption |
setWriteThrottleBytesPerSecond(long writeThrottleBytesPerSecond) |
static final String READ_THROTTLE_BYTES_PER_SECOND_OPTION
static final String WRITE_THROTTLE_BYTES_PER_SECOND_OPTION
static final String THROTTLE_CHECK_INTERVAL_MILLS_OPTION
short getId()
boolean isEnabled()
ProxyThrottleOption setEnabled(boolean enabled)
long getReadThrottleBytesPerSecond()
ProxyThrottleOption setReadThrottleBytesPerSecond(long readThrottleBytesPerSecond)
long getWriteThrottleBytesPerSecond()
ProxyThrottleOption setWriteThrottleBytesPerSecond(long writeThrottleBytesPerSecond)
long getThrottleCheckIntervalMills()
ProxyThrottleOption setThrottleCheckIntervalMills(long throttleCheckIntervalMills)
long getMaxTrafficDelaySeconds()
ProxyThrottleOption setMaxTrafficDelaySeconds(long maxTrafficDelaySeconds)
Copyright © 2022 Zodiac. All rights reserved.