@ConfigurationProperties(value="azure.cosmos")
public final class CosmosClientConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.azure.cosmos.CosmosClientBuilder |
cosmosClientBuilder |
Constructor and Description |
---|
CosmosClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.azure.cosmos.CosmosClientBuilder |
getCosmosClientBuilder() |
void |
setConsistencyLevel(com.azure.cosmos.ConsistencyLevel consistencyLevel)
Gives ability to configure consistency level.
|
void |
setDefaultGatewayMode(boolean defaultGatewayMode)
When the value is true then default gateway configuration will be used in cosmos client.
|
void |
setEndpointDiscoveryEnabled(boolean endpointDiscoveryEnabled) |
@ConfigurationBuilder(prefixes="") protected com.azure.cosmos.CosmosClientBuilder cosmosClientBuilder
@NonNull public com.azure.cosmos.CosmosClientBuilder getCosmosClientBuilder()
public void setDefaultGatewayMode(boolean defaultGatewayMode)
defaultGatewayMode
- set the default gateway modepublic void setEndpointDiscoveryEnabled(boolean endpointDiscoveryEnabled)
endpointDiscoveryEnabled
- set the endpoint discovery flagpublic void setConsistencyLevel(@NonNull com.azure.cosmos.ConsistencyLevel consistencyLevel)
consistencyLevel
- sets the default consistency level