public class ClientConfiguration extends Object
| 构造器和说明 |
|---|
ClientConfiguration()
Constructs a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getConnectionRequestTimeoutInMillisecond() |
int |
getConnectionTimeoutInMillisecond()
Returns the timeout for establishing a connection (unit: milliseconds). 0 means infinite waiting (but not recommended).
|
int |
getDnsCacheExpireAfterWriteSec()
Get the expiration time of DNS cache, in seconds.
|
int |
getDnsCacheMaxSize()
Get the number of entries in the DNS cache
|
int |
getDnsCacheRefreshAfterWriteSec()
Get the refresh frequency of DNS cache, in seconds.
|
int |
getIoThreadCount()
Returns the number of threads for the IOReactor of the HttpAsyncClient.
|
int |
getMaxConnections()
Returns the maximum number of allowed open HTTP connections.
|
String |
getProxyDomain()
Returns the Windows domain name for accessing the NTLM authenticated proxy server (optional).
|
String |
getProxyHost()
Returns the proxy server host address.
|
String |
getProxyPassword()
Returns the password for proxy server authentication.
|
int |
getProxyPort()
Returns the proxy server port.
|
String |
getProxyUsername()
Returns the username verified by the proxy server.
|
String |
getProxyWorkstation()
Returns the Windows workstation name of the NTLM proxy server.
|
RequestTracer |
getRequestTracer()
Get the link tracking system interface
|
RetryStrategy |
getRetryStrategy()
Returns the request retry policy of TableStore
|
int |
getRetryThreadCount()
Returns the number of threads in the thread pool used for executing error retries.
|
int |
getSocketTimeoutInMillisecond()
Returns the timeout for transmitting data via the opened connection (unit: milliseconds).
0 means infinite waiting (but not recommended).
|
int |
getSslSessionCacheSize()
Get the cache size of the ssl session
|
int |
getSslSessionTimeoutInSec()
Get the timeout of the ssl session
|
long |
getSyncClientWaitFutureTimeoutInMillis()
Get the maximum timeout for waiting asynchronous call returns in the sync Client.
|
TimeseriesConfiguration |
getTimeseriesConfiguration()
Get the configuration of the time series Client.
|
int |
getTimeThresholdOfServerTracer()
Returns the current server-side Tracer time threshold setting (unit: milliseconds).
|
int |
getTimeThresholdOfTraceLogger()
Returns the currently set time threshold (unit: milliseconds).
|
boolean |
isEnableDnsCache()
Get the status of DNS cache
|
boolean |
isEnableRequestCompression()
Returns whether the request data needs to be compressed.
|
boolean |
isEnableRequestTracer()
Get the status of the link tracking system.
|
boolean |
isEnableResponseCompression()
Returns whether to inform TableStore to compress the response content.
|
boolean |
isEnableResponseContentMD5Checking()
Returns whether the response content needs to be verified by MD5.
|
boolean |
isEnableResponseValidation()
Returns whether the response needs to be verified.
|
void |
setConnectionRequestTimeoutInMillisecond(int connectionRequestTimeoutInMillisecond)
Set the ConnectionRequestTimeout configuration for HttpAsyncClient.
|
void |
setConnectionTimeoutInMillisecond(int connectionTimeoutInMillisecond)
Set the timeout for establishing a connection (unit: milliseconds). 0 means wait indefinitely (but not recommended).
|
void |
setDnsCacheExpireAfterWriteSec(int dnsCacheExpireAfterWriteSec)
Set the expiration time for DNS cache, in seconds.
|
void |
setDnsCacheRefreshAfterWriteSec(int dnsCacheRefreshAfterWriteSec)
Set the refresh frequency of DNS cache, in seconds.
|
void |
setEnableDnsCache(boolean enableDnsCache)
Set whether to enable DNS cache
|
void |
setEnableRequestCompression(boolean enableRequestCompression)
Set whether to enable compression for request data
|
void |
setEnableRequestTracer(boolean enableRequestTracer)
Set whether the link tracing system is enabled
|
void |
setEnableResponseCompression(boolean enableResponseCompression)
Whether to inform TableStore to compress the content of the returned response.
|
void |
setEnableResponseContentMD5Checking(boolean enableResponseContentMD5Checking)
Whether to enable MD5 verification for the content of the response.
|
void |
setEnableResponseValidation(boolean enableResponseValidation)
Whether to enable validation of the response.
|
void |
setIoThreadCount(int ioThreadCount)
Set the number of threads for the IOReactor of the HttpAsyncClient (since asynchronous IO is used, a large number of threads does not need to be configured, and each thread can provide high concurrency).
|
void |
setMaxConnections(int maxConnections)
Set the maximum number of HTTP connections allowed to be opened (the number of connections affects concurrency and should be determined by factors such as QPS, the time for a single request, machine configuration, etc., to set a reasonable value).
|
void |
setProxyDomain(String proxyDomain)
Set the Windows domain name for accessing the NTLM authentication proxy server (optional).
|
void |
setProxyHost(String proxyHost)
Set the proxy server host address.
|
void |
setProxyPassword(String proxyPassword)
Set the password for proxy server authentication.
|
void |
setProxyPort(int proxyPort)
Set the proxy server port.
|
void |
setProxyUsername(String proxyUsername)
Set the username for proxy server authentication.
|
void |
setProxyWorkstation(String proxyWorkstation)
Set the Windows workstation name for the NTLM proxy server.
|
void |
setRequestTracer(RequestTracer requestTracer)
Set the interface for the link tracing system
|
void |
setRetryStrategy(RetryStrategy retryStrategy)
Set the request retry strategy for TableStore
|
void |
setRetryThreadCount(int retryThreadCount)
Set the number of threads in the thread pool used for executing error retries.
|
void |
setSocketTimeoutInMillisecond(int socketTimeoutInMillisecond)
Set the timeout for transmitting data through an opened connection (unit: milliseconds).
0 means infinite wait (but it is not recommended).
|
void |
setSslSessionCacheSize(int sslSessionCacheSize)
Set the cache size of the ssl session
|
void |
setSslSessionTimeoutInSec(int seconds)
Set the timeout for the SSL session
|
void |
setSyncClientWaitFutureTimeoutInMillis(long syncClientWaitFutureTimeoutInMillis)
Set the maximum timeout for waiting for asynchronous calls to return within the sync Client.
|
void |
setTimeseriesConfiguration(TimeseriesConfiguration timeseriesConfiguration)
Set the configuration for the timeseries Client.
|
void |
setTimeThresholdOfServerTracer(int timeThresholdOfServerTracer)
Set the time threshold for the server Tracer (unit: milliseconds).
|
void |
setTimeThresholdOfTraceLogger(int timeThresholdOfTraceLogger)
Set a time threshold (unit: milliseconds).
|
public void setEnableRequestCompression(boolean enableRequestCompression)
enableRequestCompression - Whether to compress (true/false)public boolean isEnableRequestCompression()
public void setEnableResponseCompression(boolean enableResponseCompression)
enableResponseCompression - whether to inform TableStore to compress the content of the returned response.public boolean isEnableResponseCompression()
public boolean isEnableResponseValidation()
public void setEnableResponseValidation(boolean enableResponseValidation)
enableResponseValidation - whether to enable validation of the responsepublic int getIoThreadCount()
public void setIoThreadCount(int ioThreadCount)
ioThreadCount - Number of threads for the IOReactorpublic int getMaxConnections()
public void setMaxConnections(int maxConnections)
maxConnections - The maximum number of HTTP connections.public int getSocketTimeoutInMillisecond()
public void setSocketTimeoutInMillisecond(int socketTimeoutInMillisecond)
socketTimeoutInMillisecond - The timeout for transmitting data through an opened connection (unit: milliseconds).public int getConnectionTimeoutInMillisecond()
public void setConnectionTimeoutInMillisecond(int connectionTimeoutInMillisecond)
connectionTimeoutInMillisecond - Timeout for establishing a connection (unit: milliseconds).public int getRetryThreadCount()
public void setRetryThreadCount(int retryThreadCount)
retryThreadCount - The number of threads in the thread pool used for executing error retries.public boolean isEnableResponseContentMD5Checking()
public void setEnableResponseContentMD5Checking(boolean enableResponseContentMD5Checking)
enableResponseContentMD5Checking - Whether to verify the MD5 of the response datapublic RetryStrategy getRetryStrategy()
public void setRetryStrategy(RetryStrategy retryStrategy)
retryStrategy - The request retry strategy for TableStorepublic int getTimeThresholdOfTraceLogger()
public void setTimeThresholdOfTraceLogger(int timeThresholdOfTraceLogger)
timeThresholdOfTraceLogger - trace loggerpublic int getTimeThresholdOfServerTracer()
public void setTimeThresholdOfServerTracer(int timeThresholdOfServerTracer)
timeThresholdOfServerTracer - trace loggerpublic String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - The proxy server host address.public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - The proxy server port.public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
proxyUsername - The username.public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - The password.public String getProxyDomain()
public void setProxyDomain(String proxyDomain)
proxyDomain - The domain name.public String getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
proxyWorkstation - The Windows workstation name for the NTLM proxy server.public long getSyncClientWaitFutureTimeoutInMillis()
public void setSyncClientWaitFutureTimeoutInMillis(long syncClientWaitFutureTimeoutInMillis)
syncClientWaitFutureTimeoutInMillis - public TimeseriesConfiguration getTimeseriesConfiguration()
public void setTimeseriesConfiguration(TimeseriesConfiguration timeseriesConfiguration)
timeseriesConfiguration - public int getConnectionRequestTimeoutInMillisecond()
public void setConnectionRequestTimeoutInMillisecond(int connectionRequestTimeoutInMillisecond)
connectionRequestTimeoutInMillisecond - public boolean isEnableRequestTracer()
public void setEnableRequestTracer(boolean enableRequestTracer)
enableRequestTracer - public boolean isEnableDnsCache()
public void setEnableDnsCache(boolean enableDnsCache)
enableDnsCache - Control the configuration of whether to turn on DNS cachepublic int getDnsCacheMaxSize()
public int getDnsCacheExpireAfterWriteSec()
public void setDnsCacheExpireAfterWriteSec(int dnsCacheExpireAfterWriteSec)
public int getDnsCacheRefreshAfterWriteSec()
public void setDnsCacheRefreshAfterWriteSec(int dnsCacheRefreshAfterWriteSec)
public void setRequestTracer(RequestTracer requestTracer)
requestTracer - Interface for the link tracing systempublic RequestTracer getRequestTracer()
public void setSslSessionCacheSize(int sslSessionCacheSize)
sslSessionCacheSize - the cache size of the ssl sessionpublic int getSslSessionCacheSize()
public void setSslSessionTimeoutInSec(int seconds)
seconds - The timeout for the SSL session, 0 means no limit; the timeout should be no less than 0, in secondspublic int getSslSessionTimeoutInSec()
Copyright © 2025. All Rights Reserved.