Package | Description |
---|---|
com.azure.cosmos |
This package provides interfaces for interacting with Azure Cosmos DB.
|
Modifier and Type | Method and Description |
---|---|
static GatewayConnectionConfig |
GatewayConnectionConfig.getDefaultConfig()
Gets the default Gateway connection configuration.
|
GatewayConnectionConfig |
GatewayConnectionConfig.setIdleConnectionTimeout(Duration idleConnectionTimeout)
sets the value of the timeout for an idle connection.
|
GatewayConnectionConfig |
GatewayConnectionConfig.setMaxConnectionPoolSize(int maxConnectionPoolSize)
Sets the value of the connection pool size, the default
is 1000.
|
GatewayConnectionConfig |
GatewayConnectionConfig.setProxy(com.azure.core.http.ProxyOptions proxy)
Sets the proxy options.
|
Modifier and Type | Method and Description |
---|---|
CosmosClientBuilder |
CosmosClientBuilder.directMode(DirectConnectionConfig directConnectionConfig,
GatewayConnectionConfig gatewayConnectionConfig)
Sets the DIRECT connection configuration to be used.
|
CosmosClientBuilder |
CosmosClientBuilder.gatewayMode(GatewayConnectionConfig gatewayConnectionConfig)
Sets the GATEWAY connection configuration to be used.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.