CosmosRequestContext Class
- java.
lang. Object - com.
azure. cosmos. CosmosRequestContext
- com.
public final class CosmosRequestContext
Getters for the common request context for operations in CosmosDB.
Method Summary
Methods inherited from java.lang.Object
Method Details
getConsistencyLevel
public ConsistencyLevel getConsistencyLevel()
Gets the consistency level.
Returns:
getCosmosEndToEndLatencyPolicyConfig
public CosmosEndToEndOperationLatencyPolicyConfig getCosmosEndToEndLatencyPolicyConfig()
Gets the CosmosEndToEndLatencyPolicyConfig.
Returns:
getCustomItemSerializer
public CosmosItemSerializer getCustomItemSerializer()
Gets the custom item serializer.
Returns:
getDedicatedGatewayRequestOptions
public DedicatedGatewayRequestOptions getDedicatedGatewayRequestOptions()
Gets the dedicated gateway request options.
Returns:
getDiagnosticsThresholds
public CosmosDiagnosticsThresholds getDiagnosticsThresholds()
Gets the diagnostics thresholds.
Returns:
getExcludedRegions
public List<String> getExcludedRegions()
Gets the excluded regions.
Returns:
getKeywordIdentifiers
public Set<String> getKeywordIdentifiers()
Gets the keyword identifiers.
Returns:
getMaxBufferedItemCount
public Integer getMaxBufferedItemCount()
Gets the max buffered item count.
Returns:
getMaxDegreeOfParallelism
public Integer getMaxDegreeOfParallelism()
Gets the max degree of parallelism.
Returns:
getMaxItemCount
public Integer getMaxItemCount()
Gets the max item count.
Returns:
getMaxPrefetchPageCount
public Integer getMaxPrefetchPageCount()
Gets the query name.
Returns:
getNonIdempotentWriteRetriesEnabled
public Boolean getNonIdempotentWriteRetriesEnabled()
Gets the non idempotent write retries enabled.
Returns:
getQueryNameOrDefault
public String getQueryNameOrDefault(String defaultQueryName)
Gets the query name.
Parameters:
Returns:
getReadConsistencyStrategy
public ReadConsistencyStrategy getReadConsistencyStrategy()
Gets the read consistency strategy.
Returns:
getResponseContinuationTokenLimitInKb
public Integer getResponseContinuationTokenLimitInKb()
Gets the response continuation token limit in KB.
Returns:
getThroughputControlGroupName
public String getThroughputControlGroupName()
Gets the resource token.
Returns:
isContentResponseOnWriteEnabled
public Boolean isContentResponseOnWriteEnabled()
Gets the content response on write enabled.
Returns:
isIndexMetricsEnabled
public Boolean isIndexMetricsEnabled()
Gets the index metrics enabled.
Returns:
isQueryAdviceEnabled
public Boolean isQueryAdviceEnabled()
Gets the query advice enabled.
Returns:
isQueryMetricsEnabled
public Boolean isQueryMetricsEnabled()
Gets the query metrics enabled.
Returns:
isScanInQueryEnabled
public Boolean isScanInQueryEnabled()
Gets the scan in query enabled.
Returns: