public class DefaultGlobalProxyThrottleOption extends Object implements ProxyThrottleOption
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
enabled |
private short |
id |
private long |
maxTrafficDelaySeconds |
private long |
readThrottleBytesPerSecond |
private static long |
serialVersionUID |
private long |
throttleCheckIntervalMills |
private long |
writeThrottleBytesPerSecond |
ENABLED_OPTION, GLOBAL_THROTTLE_OPTIONS_KEY, MAX_TRAFFIC_DELAY_SECONDS_OPTION, READ_THROTTLE_BYTES_PER_SECOND_OPTION, THROTTLE_CHECK_INTERVAL_MILLS_OPTION, WRITE_THROTTLE_BYTES_PER_SECOND_OPTION| 构造器和说明 |
|---|
DefaultGlobalProxyThrottleOption() |
DefaultGlobalProxyThrottleOption(short id) |
| 限定符和类型 | 方法和说明 |
|---|---|
short |
getId() |
long |
getMaxTrafficDelaySeconds() |
long |
getReadThrottleBytesPerSecond() |
long |
getThrottleCheckIntervalMills() |
long |
getWriteThrottleBytesPerSecond() |
boolean |
isEnabled() |
DefaultGlobalProxyThrottleOption |
setEnabled(boolean enabled) |
DefaultGlobalProxyThrottleOption |
setMaxTrafficDelaySeconds(long maxTrafficDelaySeconds) |
DefaultGlobalProxyThrottleOption |
setReadThrottleBytesPerSecond(long readThrottleBytesPerSecond) |
DefaultGlobalProxyThrottleOption |
setThrottleCheckIntervalMills(long throttleCheckIntervalMills) |
DefaultGlobalProxyThrottleOption |
setWriteThrottleBytesPerSecond(long writeThrottleBytesPerSecond) |
private static final long serialVersionUID
private short id
private boolean enabled
private long readThrottleBytesPerSecond
private long writeThrottleBytesPerSecond
private long throttleCheckIntervalMills
private long maxTrafficDelaySeconds
public DefaultGlobalProxyThrottleOption()
public DefaultGlobalProxyThrottleOption(short id)
public short getId()
getId 在接口中 ProxyThrottleOptionpublic boolean isEnabled()
isEnabled 在接口中 ProxyThrottleOptionpublic DefaultGlobalProxyThrottleOption setEnabled(boolean enabled)
setEnabled 在接口中 ProxyThrottleOptionpublic long getReadThrottleBytesPerSecond()
public DefaultGlobalProxyThrottleOption setReadThrottleBytesPerSecond(long readThrottleBytesPerSecond)
public long getWriteThrottleBytesPerSecond()
public DefaultGlobalProxyThrottleOption setWriteThrottleBytesPerSecond(long writeThrottleBytesPerSecond)
public long getThrottleCheckIntervalMills()
public DefaultGlobalProxyThrottleOption setThrottleCheckIntervalMills(long throttleCheckIntervalMills)
public long getMaxTrafficDelaySeconds()
getMaxTrafficDelaySeconds 在接口中 ProxyThrottleOptionpublic DefaultGlobalProxyThrottleOption setMaxTrafficDelaySeconds(long maxTrafficDelaySeconds)
setMaxTrafficDelaySeconds 在接口中 ProxyThrottleOptionCopyright © 2022 Zodiac. All rights reserved.