Package com.azure.cosmos
Class CosmosRequestContext
java.lang.Object
com.azure.cosmos.CosmosRequestContext
Getters for the common request context for operations in CosmosDB.
-
Method Summary
Modifier and TypeMethodDescriptionGets the consistency level.Gets the CosmosEndToEndLatencyPolicyConfig.Gets the dedicated gateway request options.Gets the diagnostics thresholds.Gets the excluded regions.Gets the keyword identifiers.Gets the max buffered item count.Gets the max degree of parallelism.Gets the max item count.Gets the query name.Gets the non idempotent write retries enabled.getQueryNameOrDefault
(String defaultQueryName) Gets the query name.Gets the response continuation token limit in KB.Gets the resource token.Gets the content response on write enabled.Gets the index metrics enabled.Gets the query metrics enabled.Gets the scan in query enabled.
-
Method Details
-
getCosmosEndToEndLatencyPolicyConfig
Gets the CosmosEndToEndLatencyPolicyConfig.- Returns:
- the CosmosEndToEndLatencyPolicyConfig. It could be null if not defined or called on an irrelevant operation.
-
getConsistencyLevel
Gets the consistency level.- Returns:
- the consistency level. It could be null if not defined or called on an irrelevant operation.
-
isContentResponseOnWriteEnabled
Gets the content response on write enabled.- Returns:
- the content response on write enabled. It could be null if not defined or called on an irrelevant operation.
-
getNonIdempotentWriteRetriesEnabled
Gets the non idempotent write retries enabled.- Returns:
- the non idempotent write retries enabled. It could be null if not defined or called on an irrelevant operation.
-
getDedicatedGatewayRequestOptions
Gets the dedicated gateway request options.- Returns:
- the dedicated gateway request options. It could be null if not defined or called on an irrelevant operation.
-
getExcludedRegions
Gets the excluded regions.- Returns:
- the excluded regions.
-
getThroughputControlGroupName
Gets the resource token.- Returns:
- the resource token.
-
getDiagnosticsThresholds
Gets the diagnostics thresholds.- Returns:
- the diagnostics thresholds. It could be null if not defined or called on an irrelevant operation.
-
isScanInQueryEnabled
Gets the scan in query enabled.- Returns:
- the scan in query enabled. It could be null if not defined or called on an irrelevant operation.
-
getMaxDegreeOfParallelism
Gets the max degree of parallelism.- Returns:
- the max degree of parallelism. It could be null if not defined or called on an irrelevant operation.
-
getMaxBufferedItemCount
Gets the max buffered item count.- Returns:
- the max buffered item count. It could be null if not defined or called on an irrelevant operation.
-
getResponseContinuationTokenLimitInKb
Gets the response continuation token limit in KB.- Returns:
- the response continuation token limit in KB. It could be null if not defined or called on an irrelevant operation.
-
getMaxItemCount
Gets the max item count.- Returns:
- the max item count. It could be null if not defined or called on an irrelevant operation.
-
isQueryMetricsEnabled
Gets the query metrics enabled.- Returns:
- the query metrics enabled. It could be null if not defined or called on an irrelevant operation.
-
isIndexMetricsEnabled
Gets the index metrics enabled.- Returns:
- the index metrics enabled. It could be null if not defined or called on an irrelevant operation.
-
getMaxPrefetchPageCount
Gets the query name.- Returns:
- the query name. It could be null if not defined or called on an irrelevant operation.
-
getQueryNameOrDefault
Gets the query name.- Parameters:
defaultQueryName
- the default query name.- Returns:
- the query name. It could be null if not defined or called on an irrelevant operation.
-
getKeywordIdentifiers
Gets the keyword identifiers.- Returns:
- the keyword identifiers.
-