Package | Description |
---|---|
com.azure.cosmos |
This package provides Rx interfaces for interacting with Azure Cosmos DB.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionPolicy |
CosmosBridgeInternal.getConnectionPolicy(CosmosClientBuilder cosmosClientBuilder) |
static ConnectionPolicy |
ConnectionPolicy.getDefaultPolicy()
Gets the default connection policy.
|
ConnectionPolicy |
ConnectionPolicy.setConnectionMode(ConnectionMode connectionMode)
Sets the connection mode used in the client.
|
ConnectionPolicy |
ConnectionPolicy.setEndpointDiscoveryEnabled(boolean endpointDiscoveryEnabled)
Sets the flag to enable endpoint discovery for geo-replicated database accounts.
|
ConnectionPolicy |
ConnectionPolicy.setIdleConnectionTimeout(Duration idleConnectionTimeout)
sets the value of the timeout for an idle connection.
|
ConnectionPolicy |
ConnectionPolicy.setMaxPoolSize(int maxPoolSize)
Sets the value of the connection pool size, the default
is 1000.
|
ConnectionPolicy |
ConnectionPolicy.setPreferredLocations(List<String> preferredLocations)
Sets the preferred locations for geo-replicated database accounts.
|
ConnectionPolicy |
ConnectionPolicy.setProxy(InetSocketAddress proxy)
This will create the InetSocketAddress for proxy server,
all the requests to cosmoDB will route from this address.
|
ConnectionPolicy |
ConnectionPolicy.setReadRequestsFallbackEnabled(Boolean readRequestsFallbackEnabled)
Sets whether to allow for reads to go to multiple regions configured on an account of Azure Cosmos DB service.
|
ConnectionPolicy |
ConnectionPolicy.setRequestTimeout(Duration requestTimeout)
Sets the request timeout (time to wait for response from network peer).
|
ConnectionPolicy |
ConnectionPolicy.setThrottlingRetryOptions(ThrottlingRetryOptions throttlingRetryOptions)
Sets the retry policy options associated with the DocumentClient instance.
|
ConnectionPolicy |
ConnectionPolicy.setUserAgentSuffix(String userAgentSuffix)
sets the value of the user-agent suffix.
|
ConnectionPolicy |
ConnectionPolicy.setUsingMultipleWriteLocations(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
ConnectionPolicy to be used |
static boolean |
BridgeInternal.getUseMultipleWriteLocations(ConnectionPolicy policy) |
static void |
BridgeInternal.setUseMultipleWriteLocations(ConnectionPolicy policy,
boolean value) |
Copyright © 2020 Microsoft Corporation. All rights reserved.