public interface ProxyManager
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
Stops the server and all related clones immediately, without waiting for traffic to stop.
|
Collection<ActivityTracker> |
getActivityTrackers() |
int |
getConnectTimeout()
Returns the maximum time to wait, in milliseconds, to connect to a server.
|
int |
getIdleConnectionTimeout() |
InetSocketAddress |
getListenAddress()
Return the address on which this proxy is listening.
|
InetSocketAddress |
getLocalAddress() |
String |
getProxyAlias() |
EventLoopGroup |
getProxyToServerWorkerFor(TransportProtocol transportProtocol) |
HostResolver |
getServerResolver() |
boolean |
isTransparent() |
void |
registerChannel(Channel channel) |
void |
setConnectTimeout(int connectTimeoutMs)
Sets the maximum time to wait, in milliseconds, to connect to a server.
|
void |
setIdleConnectionTimeout(int idleConnectionTimeout) |
void |
setThrottle(boolean enableThrottle,
long readThrottleBytesPerSecond,
long writeThrottleBytesPerSecond,
long throttleCheckIntervalMills,
long maxTrafficDelaySeconds)
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
|
default void |
setThrottle(long readThrottleBytesPerSecond,
long writeThrottleBytesPerSecond)
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
|
void |
stop()
Stops the server and all related clones.
|
boolean isTransparent()
HostResolver getServerResolver()
EventLoopGroup getProxyToServerWorkerFor(TransportProtocol transportProtocol)
int getIdleConnectionTimeout()
void setIdleConnectionTimeout(int idleConnectionTimeout)
int getConnectTimeout()
void setConnectTimeout(int connectTimeoutMs)
connectTimeoutMs - connection timeout in millisecondsvoid stop()
void abort()
InetSocketAddress getListenAddress()
InetSocketAddress getLocalAddress()
String getProxyAlias()
default void setThrottle(long readThrottleBytesPerSecond,
long writeThrottleBytesPerSecond)
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
readThrottleBytesPerSecond - read BPSwriteThrottleBytesPerSecond - write BPSvoid setThrottle(boolean enableThrottle,
long readThrottleBytesPerSecond,
long writeThrottleBytesPerSecond,
long throttleCheckIntervalMills,
long maxTrafficDelaySeconds)
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
enableThrottle - enables throttlereadThrottleBytesPerSecond - read BPSwriteThrottleBytesPerSecond - write BPSthrottleCheckIntervalMills - check interval in millisecondsmaxTrafficDelaySeconds - throttle delay in secondsCollection<ActivityTracker> getActivityTrackers()
void registerChannel(Channel channel)
Copyright © 2021 Zodiac. All rights reserved.