Modifier and Type | Method and Description |
---|---|
ConnectionPolicy |
ConnectionPolicy.connectionMode(ConnectionMode connectionMode)
Sets the connection mode used in the client.
|
ConnectionPolicy |
CosmosClientBuilder.connectionPolicy()
Gets the (@link ConnectionPolicy) to be used
|
static ConnectionPolicy |
ConnectionPolicy.defaultPolicy()
Gets the default connection policy.
|
ConnectionPolicy |
ConnectionPolicy.enableEndpointDiscovery(boolean enableEndpointDiscovery)
Sets the flag to enable endpoint discovery for geo-replicated database accounts.
|
ConnectionPolicy |
ConnectionPolicy.enableReadRequestsFallback(Boolean enableReadRequestsFallback)
Sets whether to allow for reads to go to multiple regions configured on an account of Azure Cosmos DB service.
|
ConnectionPolicy |
ConnectionPolicy.idleConnectionTimeoutInMillis(int idleConnectionTimeoutInMillis)
sets the value of the timeout for an idle connection.
|
ConnectionPolicy |
ConnectionPolicy.maxPoolSize(int maxPoolSize)
Sets the value of the connection pool size, the default
is 1000.
|
ConnectionPolicy |
ConnectionPolicy.preferredLocations(List<String> preferredLocations)
Sets the preferred locations for geo-replicated database accounts.
|
ConnectionPolicy |
ConnectionPolicy.proxy(String proxyHost,
int proxyPort)
This will create the InetSocketAddress for proxy server,
all the requests to cosmoDB will route from this address.
|
ConnectionPolicy |
ConnectionPolicy.requestTimeoutInMillis(int requestTimeoutInMillis)
Sets the request timeout (time to wait for response from network peer) in
milliseconds.
|
ConnectionPolicy |
ConnectionPolicy.retryOptions(RetryOptions retryOptions)
Sets the retry policy options associated with the DocumentClient instance.
|
ConnectionPolicy |
ConnectionPolicy.userAgentSuffix(String userAgentSuffix)
sets the value of the user-agent suffix.
|
ConnectionPolicy |
ConnectionPolicy.usingMultipleWriteLocations(boolean usingMultipleWriteLocations)
Sets the flag to enable writes on any locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service.
|
Modifier and Type | Method and Description |
---|---|
CosmosClientBuilder |
CosmosClientBuilder.connectionPolicy(ConnectionPolicy connectionPolicy)
Sets the (@link ConnectionPolicy) to be used
|
Copyright © 2019. All rights reserved.