Uses of Class
com.azure.cosmos.CosmosClientBuilder
Package
Description
This package provides interfaces for interacting with Azure Cosmos DB.
Cosmosdb class for spring
This package contains the classes to configure properties of cosmos db
-
Uses of CosmosClientBuilder in com.azure.cosmos
Modifier and TypeMethodDescriptionCosmosClientBuilder.authorizationTokenResolver
(CosmosAuthorizationTokenResolver cosmosAuthorizationTokenResolver) Sets the token resolverCosmosClientBuilder.clientTelemetryEnabled
(boolean clientTelemetryEnabled) Sets the flag to enable client telemetry which will periodically collect database operations aggregation statistics, system information like cpu/memory and send it to cosmos monitoring service, which will be helpful during debugging.CosmosClientBuilder.connectionSharingAcrossClientsEnabled
(boolean connectionSharingAcrossClientsEnabled) Enables connections sharing across multiple Cosmos Clients.CosmosClientBuilder.consistencyLevel
(ConsistencyLevel desiredConsistencyLevel) Sets theConsistencyLevel
to be used By default,ConsistencyLevel.SESSION
consistency will be used.CosmosClientBuilder.contentResponseOnWriteEnabled
(boolean contentResponseOnWriteEnabled) Sets the boolean to only return the headers and status code in Cosmos DB response in case of Create, Update and Delete operations on CosmosItem.CosmosClientBuilder.credential
(AzureKeyCredential credential) Sets theAzureKeyCredential
to be usedCosmosClientBuilder.credential
(TokenCredential credential) Sets theTokenCredential
used to authorize requests sent to the service.CosmosClientBuilder.directMode()
Sets the default DIRECT connection configuration to be used.CosmosClientBuilder.directMode
(DirectConnectionConfig directConnectionConfig) Sets the DIRECT connection configuration to be used.CosmosClientBuilder.directMode
(DirectConnectionConfig directConnectionConfig, GatewayConnectionConfig gatewayConnectionConfig) Sets the DIRECT connection configuration to be used.Sets the Azure Cosmos DB endpoint the SDK will connect toCosmosClientBuilder.endpointDiscoveryEnabled
(boolean endpointDiscoveryEnabled) Sets the flag to enable endpoint discovery for geo-replicated database accounts.CosmosClientBuilder.gatewayMode()
Sets the default GATEWAY connection configuration to be used.CosmosClientBuilder.gatewayMode
(GatewayConnectionConfig gatewayConnectionConfig) Sets the GATEWAY connection configuration to be used.Sets either a master or readonly key used to perform authentication for accessing resource.CosmosClientBuilder.multipleWriteRegionsEnabled
(boolean multipleWriteRegionsEnabled) Sets the flag to enable writes on any regions for geo-replicated database accounts in the Azure Cosmos DB service.CosmosClientBuilder.permissions
(List<CosmosPermissionProperties> permissions) Sets the permission list, which contains the resource tokens needed to access resources.CosmosClientBuilder.preferredRegions
(List<String> preferredRegions) Sets the preferred regions for geo-replicated database accounts.CosmosClientBuilder.readRequestsFallbackEnabled
(boolean readRequestsFallbackEnabled) Sets whether to allow for reads to go to multiple regions configured on an account of Azure Cosmos DB service.CosmosClientBuilder.resourceToken
(String resourceToken) Sets a resource token used to perform authentication for accessing resource.CosmosClientBuilder.sessionCapturingOverrideEnabled
(boolean sessionCapturingOverrideEnabled) Session capturing is enabled by default forConsistencyLevel.SESSION
.CosmosClientBuilder.throttlingRetryOptions
(ThrottlingRetryOptions throttlingRetryOptions) Sets the retry policy options associated with the DocumentClient instance.CosmosClientBuilder.userAgentSuffix
(String userAgentSuffix) sets the value of the user-agent suffix. -
Uses of CosmosClientBuilder in com.azure.spring.data.cosmos
Modifier and TypeMethodDescriptionstatic CosmosAsyncClient
CosmosFactory.createCosmosAsyncClient
(CosmosClientBuilder cosmosClientBuilder) Create Cosmos Async Client -
Uses of CosmosClientBuilder in com.azure.spring.data.cosmos.config
Modifier and TypeMethodDescriptionAbstractCosmosConfiguration.cosmosAsyncClient
(CosmosClientBuilder cosmosClientBuilder) Declare CosmosAsyncClient bean.