Java com.amazonaws ClientConfiguration fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws ClientConfiguration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws ClientConfiguration.

The text is from its open source code.

Field

intDEFAULT_CONNECTION_TIMEOUT
The default timeout for creating new connections.
intDEFAULT_SOCKET_TIMEOUT
The default timeout for reading from a connected socket.
intDEFAULT_MAX_CONNECTIONS
The default max connection pool size.
StringDEFAULT_USER_AGENT
The default HTTP user agent header for AWS Java SDK clients.
RetryPolicyDEFAULT_RETRY_POLICY
Default request retry policy, including the maximum retry count of 3, the default retry condition and the default back-off strategy.
booleanDEFAULT_USE_REAPER
The default on whether to use the IdleConnectionReaper to manage stale connections
booleanDEFAULT_USE_GZIP
The default on whether to use gzip compression.
longDEFAULT_CONNECTION_TTL
The default expiration time (in milliseconds) for a connection in the connection pool.
booleanDEFAULT_TCP_KEEP_ALIVE
The default on whether to use TCP KeepAlive.

Constructor

Method

ApacheHttpClientConfiggetApacheHttpClientConfig()
Returns a non-null object that can be used to specify Apache HTTP client specific custom configurations.
intgetConnectionTimeout()
Returns the amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out.
intgetMaxErrorRetry()
Returns the maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from a service).
ProtocolgetProtocol()
Returns the protocol (HTTP or HTTPS) to use when connecting to Amazon Web Services.
StringgetProxyDomain()
Returns the optional Windows domain name for configuring an NTLM proxy.
StringgetProxyHost()
Returns the optional proxy host the client will connect through.
StringgetProxyPassword()
Returns the optional proxy password to use if connecting through a proxy.
intgetProxyPort()
Returns the optional proxy port the client will connect through.
StringgetProxyUsername()
Returns the optional proxy user name to use if connecting through a proxy.
StringgetProxyWorkstation()
Returns the optional Windows workstation name for configuring NTLM proxy support.
int[]getSocketBufferSizeHints()
Returns the optional size hints (in bytes) for the low level TCP send and receive buffers.
intgetSocketTimeout()
Returns the amount of time to wait (in milliseconds) for data to be transferred over an established, open connection before the connection times out and is closed.
StringgetUserAgent()
booleanisPreemptiveBasicProxyAuth()
Returns whether to attempt to authenticate preemptively against proxy servers using basic authentication
voidsetClientExecutionTimeout(int clientExecutionTimeout)
Sets the amount of time (in milliseconds) to allow the client to complete the execution of an API call.
voidsetConnectionTimeout(int connectionTimeout)
Sets the amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out.
voidsetConnectionTTL(long connectionTTL)
Sets the expiration time (in milliseconds) for a connection in the connection pool.
voidsetLocalAddress(InetAddress localAddress)
Sets the optional local address the client will bind to.
voidsetMaxConnections(int maxConnections)
Sets the maximum number of allowed open HTTP connections.
voidsetMaxErrorRetry(int maxErrorRetry)
Sets the maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from services).
voidsetNonProxyHosts(String nonProxyHosts)
Set the optional hosts the client will access without going through the proxy.
voidsetPreemptiveBasicProxyAuth(Boolean preemptiveBasicProxyAuth)
Sets whether to attempt to authenticate preemptively against proxy servers using basic authentication
voidsetProtocol(Protocol protocol)
Sets the protocol (i.e.
voidsetProxyDomain(String proxyDomain)
Sets the optional Windows domain name for configuration an NTLM proxy.
voidsetProxyHost(String proxyHost)
Sets the optional proxy host the client will connect through.
voidsetProxyPassword(String proxyPassword)
Sets the optional proxy password to use when connecting through a proxy.
voidsetProxyPort(int proxyPort)
Sets the optional proxy port the client will connect through.
voidsetProxyUsername(String proxyUsername)
Sets the optional proxy user name to use if connecting through a proxy.
voidsetProxyWorkstation(String proxyWorkstation)
Sets the optional Windows workstation name for configuring NTLM proxy support.
voidsetRequestTimeout(int requestTimeout)
Sets the amount of time to wait (in milliseconds) for the request to complete before giving up and timing out.
voidsetResponseMetadataCacheSize(int responseMetadataCacheSize)
Sets the response metadata cache size.
voidsetRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy upon failed requests.
voidsetSignerOverride(final String value)
Sets the name of the signature algorithm to use for signing requests made by this client.
voidsetSocketBufferSizeHints(int socketSendBufferSizeHint, int socketReceiveBufferSizeHint)
Sets the optional size hints (in bytes) for the low level TCP send and receive buffers.
voidsetSocketTimeout(int socketTimeout)
Sets the amount of time to wait (in milliseconds) for data to be transferred over an established, open connection before the connection times out and is closed.
voidsetUseGzip(boolean use)
Sets whether gzip compression should be used
voidsetUserAgent(String userAgent)
voidsetUserAgentPrefix(String prefix)
Sets the HTTP user agent prefix to send with all requests.
voidsetUseReaper(boolean use)
Sets whether the IdleConnectionReaper is to be started as a daemon thread
voidsetUseTcpKeepAlive(final boolean use)
Sets whether or not to enable TCP KeepAlive support at the socket level.
voidsetUseThrottleRetries(boolean use)
Sets whether throttled retries should be used

Retry throttling is a feature which intelligently throttles retry attempts when a large percentage of requests are failing and retries are unsuccessful, particularly in scenarios of degraded service health.

ClientConfigurationwithClientExecutionTimeout(int clientExecutionTimeout)
Sets the amount of time (in milliseconds) to allow the client to complete the execution of an API call.
ClientConfigurationwithConnectionTimeout(int connectionTimeout)
Sets the amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out, and returns the updated ClientConfiguration object so that additional method calls may be chained together.
ClientConfigurationwithMaxConnections(int maxConnections)
Sets the maximum number of allowed open HTTP connections and returns the updated ClientConfiguration object.
ClientConfigurationwithMaxErrorRetry(int maxErrorRetry)
Sets the maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from services), and returns the updated ClientConfiguration object.
ClientConfigurationwithProtocol(Protocol protocol)
Sets the protocol (i.e.
ClientConfigurationwithProxyHost(String proxyHost)
Sets the optional proxy host the client will connect through and returns the updated ClientConfiguration object.
ClientConfigurationwithProxyPassword(String proxyPassword)
Sets the optional proxy password to use when connecting through a proxy, and returns the updated ClientConfiguration object.
ClientConfigurationwithProxyPort(int proxyPort)
Sets the optional proxy port the client will connect through and returns the updated ClientConfiguration object.
ClientConfigurationwithProxyUsername(String proxyUsername)
Sets the optional proxy user name and returns the updated ClientConfiguration object.
ClientConfigurationwithRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy upon failed requests, and returns the updated ClientConfiguration object.
ClientConfigurationwithSignerOverride(final String value)
Sets the name of the signature algorithm to use for signing requests made by this client.
ClientConfigurationwithSocketBufferSizeHints(int socketSendBufferSizeHint, int socketReceiveBufferSizeHint)
Sets the optional size hints (in bytes) for the low level TCP send and receive buffers, and returns the updated ClientConfiguration object so that additional method calls may be chained together.
ClientConfigurationwithSocketTimeout(int socketTimeout)
Sets the amount of time to wait (in milliseconds) for data to be transferred over an established, open connection before the connection times out and is closed, and returns the updated ClientConfiguration object so that additional method calls may be chained together.
ClientConfigurationwithUseExpectContinue(boolean useExpectContinue)
Sets if use expect continue should be enabled.
ClientConfigurationwithUserAgentPrefix(String prefix)
Sets the HTTP user agent prefix header used in requests and returns the updated ClientConfiguration object.