Package | Description |
---|---|
com.amazonaws | |
com.amazonaws.http | |
com.amazonaws.regions | |
com.amazonaws.util |
Modifier and Type | Field and Description |
---|---|
protected ClientConfiguration |
AmazonWebServiceClient.clientConfiguration
The client configuration
|
Modifier and Type | Method and Description |
---|---|
static ClientConfiguration |
PredefinedClientConfigurations.defaultConfig()
Factory method for default
ClientConfiguration for all services unless otherwise
specified |
static ClientConfiguration |
PredefinedClientConfigurations.dynamoDefault()
Factory method for DynamoDB's default
ClientConfiguration |
static ClientConfiguration |
PredefinedClientConfigurations.swfDefault()
Factory method for Simple Workflow's default
ClientConfiguration |
ClientConfiguration |
ClientConfiguration.withConnectionMaxIdleMillis(long connectionMaxIdleMillis)
Sets the maximum amount of time that an idle connection may sit in
the connection pool and still be eligible for reuse.
|
ClientConfiguration |
ClientConfiguration.withConnectionTimeout(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.
|
ClientConfiguration |
ClientConfiguration.withConnectionTTL(long connectionTTL)
Sets the expiration time (in milliseconds) for a connection in the
connection pool.
|
ClientConfiguration |
ClientConfiguration.withDnsResolver(DnsResolver resolver)
Sets the DNS Resolver that should be used to for resolving AWS IP addresses.
|
ClientConfiguration |
ClientConfiguration.withGzip(boolean use)
Sets whether gzip compression should be used
|
ClientConfiguration |
ClientConfiguration.withLocalAddress(InetAddress localAddress)
Sets the optional local address the client will bind to and returns
the updated ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withMaxConnections(int maxConnections)
Sets the maximum number of allowed open HTTP connections and returns the
updated ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withMaxErrorRetry(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.
|
ClientConfiguration |
ClientConfiguration.withPreemptiveBasicProxyAuth(boolean preemptiveBasicProxyAuth)
Sets whether to attempt to authenticate preemptively against proxy
servers using basic authentication, and returns the updated
ClientConfiguration object so that additional method calls may be chained
together.
|
ClientConfiguration |
ClientConfiguration.withProtocol(Protocol protocol)
Sets the protocol (i.e.
|
ClientConfiguration |
ClientConfiguration.withProxyDomain(String proxyDomain)
Sets the optional Windows domain name for configuration an NTLM proxy and
returns a reference to this updated ClientConfiguration object so that
additional method calls can be chained together.
|
ClientConfiguration |
ClientConfiguration.withProxyHost(String proxyHost)
Sets the optional proxy host the client will connect through and returns
the updated ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withProxyPassword(String proxyPassword)
Sets the optional proxy password to use when connecting through a proxy,
and returns the updated ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withProxyPort(int proxyPort)
Sets the optional proxy port the client will connect through and returns
the updated ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withProxyUsername(String proxyUsername)
Sets the optional proxy user name and returns the updated
ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withProxyWorkstation(String proxyWorkstation)
Sets the optional Windows workstation name for configuring NTLM proxy
support, and returns the updated ClientConfiguration object so that
additional method calls can be chained together.
|
ClientConfiguration |
ClientConfiguration.withReaper(boolean use)
Sets whether the
IdleConnectionReaper is to be started as a daemon thread |
ClientConfiguration |
ClientConfiguration.withResponseMetadataCacheSize(int responseMetadataCacheSize)
Sets the response metadata cache size.
|
ClientConfiguration |
ClientConfiguration.withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy upon failed requests, and returns the updated
ClientConfiguration object.
|
ClientConfiguration |
ClientConfiguration.withSignerOverride(String value)
Sets the name of the signature algorithm to use for signing requests
made by this client.
|
ClientConfiguration |
ClientConfiguration.withSocketBufferSizeHints(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.
|
ClientConfiguration |
ClientConfiguration.withSocketTimeout(int socketTimeout)
Sets the amount of time to wait (in milliseconds) for data to be
transfered 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.
|
ClientConfiguration |
ClientConfiguration.withTcpKeepAlive(boolean use)
Sets whether or not to enable TCP KeepAlive support at the socket level.
|
ClientConfiguration |
ClientConfiguration.withUserAgent(String userAgent)
Sets the HTTP user agent header used in requests and returns the updated
ClientConfiguration object.
|
Constructor and Description |
---|
AmazonWebServiceClient(ClientConfiguration clientConfiguration)
Constructs a new AmazonWebServiceClient object using the specified
configuration.
|
AmazonWebServiceClient(ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new AmazonWebServiceClient object using the specified
configuration and request metric collector.
|
ClientConfiguration(ClientConfiguration other) |
Constructor and Description |
---|
AmazonHttpClient(ClientConfiguration config)
Constructs a new AWS client using the specified client configuration
options (ex: max retry attempts, proxy settings, etc).
|
AmazonHttpClient(ClientConfiguration config,
RequestMetricCollector requestMetricCollector)
Constructs a new AWS client using the specified client configuration
options (ex: max retry attempts, proxy settings, etc), and request metric
collector.
|
Modifier and Type | Method and Description |
---|---|
<T extends AmazonWebServiceClient> |
Region.createClient(Class<T> serviceClass,
AWSCredentialsProvider credentials,
ClientConfiguration config)
Creates a new service client of the class given and configures it.
|
static void |
RegionUtils.initializeFromURI(URI uri,
ClientConfiguration config)
Loads a set of region metadata by downloading an XML file from the
given URI and parsing it.
|
static RegionMetadata |
RegionUtils.loadMetadataFromURI(URI uri,
ClientConfiguration config)
Loads a set of region metadata by downloading an XML file from the
given URI and parsing it.
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
HttpUtils.fetchFile(URI uri,
ClientConfiguration config)
Fetches a file from the URI given and returns an input stream to it.
|
static URI |
HttpUtils.toUri(String endpoint,
ClientConfiguration config)
Returns an URI for the given endpoint.
|
Copyright © 2015. All rights reserved.