public class AzureCosmosProperties extends AbstractAzureServiceCP implements CosmosProperties
com.azure.spring.core.aware.RetryAware.Backoff, com.azure.spring.core.aware.RetryAware.HttpRetry, com.azure.spring.core.aware.RetryAware.Retrycom.azure.spring.core.aware.ClientAware.AmqpClient, com.azure.spring.core.aware.ClientAware.Client, com.azure.spring.core.aware.ClientAware.HttpClient, com.azure.spring.core.aware.ClientAware.HttpLoggingcom.azure.spring.core.aware.ProxyAware.HttpProxy, com.azure.spring.core.aware.ProxyAware.Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX |
credential, enabled, profile, resource| Constructor and Description |
|---|
AzureCosmosProperties() |
getCredential, getProfile, getResource, isEnabled, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRetrypublic static final String PREFIX
public HttpProxyCP getProxy()
getProxy in interface com.azure.spring.core.aware.ProxyAwarepublic ClientCP getClient()
getClient in interface com.azure.spring.core.aware.ClientAwarepublic String getEndpoint()
getEndpoint in interface CosmosPropertiespublic void setEndpoint(String endpoint)
public String getKey()
getKey in interface com.azure.spring.core.aware.authentication.KeyAwarepublic void setKey(String key)
public String getResourceToken()
getResourceToken in interface CosmosPropertiespublic void setResourceToken(String resourceToken)
public Boolean getClientTelemetryEnabled()
getClientTelemetryEnabled in interface CosmosPropertiespublic void setClientTelemetryEnabled(Boolean clientTelemetryEnabled)
public Boolean getEndpointDiscoveryEnabled()
getEndpointDiscoveryEnabled in interface CosmosPropertiespublic void setEndpointDiscoveryEnabled(Boolean endpointDiscoveryEnabled)
public Boolean getConnectionSharingAcrossClientsEnabled()
getConnectionSharingAcrossClientsEnabled in interface CosmosPropertiespublic void setConnectionSharingAcrossClientsEnabled(Boolean connectionSharingAcrossClientsEnabled)
public Boolean getContentResponseOnWriteEnabled()
getContentResponseOnWriteEnabled in interface CosmosPropertiespublic void setContentResponseOnWriteEnabled(Boolean contentResponseOnWriteEnabled)
public Boolean getMultipleWriteRegionsEnabled()
getMultipleWriteRegionsEnabled in interface CosmosPropertiespublic void setMultipleWriteRegionsEnabled(Boolean multipleWriteRegionsEnabled)
public Boolean getSessionCapturingOverrideEnabled()
getSessionCapturingOverrideEnabled in interface CosmosPropertiespublic void setSessionCapturingOverrideEnabled(Boolean sessionCapturingOverrideEnabled)
public Boolean getReadRequestsFallbackEnabled()
getReadRequestsFallbackEnabled in interface CosmosPropertiespublic void setReadRequestsFallbackEnabled(Boolean readRequestsFallbackEnabled)
public List<com.azure.cosmos.models.CosmosPermissionProperties> getPermissions()
getPermissions in interface CosmosPropertiespublic List<String> getPreferredRegions()
getPreferredRegions in interface CosmosPropertiespublic com.azure.cosmos.GatewayConnectionConfig getGatewayConnection()
getGatewayConnection in interface CosmosPropertiespublic com.azure.cosmos.DirectConnectionConfig getDirectConnection()
getDirectConnection in interface CosmosPropertiespublic com.azure.cosmos.ConsistencyLevel getConsistencyLevel()
getConsistencyLevel in interface CosmosPropertiespublic void setConsistencyLevel(com.azure.cosmos.ConsistencyLevel consistencyLevel)
public String getDatabase()
getDatabase in interface CosmosPropertiespublic void setDatabase(String database)
public boolean isPopulateQueryMetrics()
public void setPopulateQueryMetrics(boolean populateQueryMetrics)
public com.azure.cosmos.ConnectionMode getConnectionMode()
getConnectionMode in interface CosmosPropertiespublic void setConnectionMode(com.azure.cosmos.ConnectionMode connectionMode)
public com.azure.cosmos.ThrottlingRetryOptions getThrottlingRetryOptions()
getThrottlingRetryOptions in interface CosmosPropertiesVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.