Package com.azure.cosmos.models
Class DedicatedGatewayRequestOptions
java.lang.Object
com.azure.cosmos.models.DedicatedGatewayRequestOptions
- All Implemented Interfaces:
Serializable
Dedicated Gateway Request Options
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the staleness value associated with the request in the Azure CosmosDB service.boolean
Gets if the integrated cache is enabled or bypassed with the request in Azure CosmosDB service.setIntegratedCacheBypassed
(boolean bypassIntegratedCache) Sets if integrated cache should be enabled or bypassed for the request in Azure CosmosDB service.setMaxIntegratedCacheStaleness
(Duration maxIntegratedCacheStaleness) Sets the staleness value associated with the request in the Azure CosmosDB service.
-
Constructor Details
-
DedicatedGatewayRequestOptions
public DedicatedGatewayRequestOptions()Constructor
-
-
Method Details
-
getMaxIntegratedCacheStaleness
Gets the staleness value associated with the request in the Azure CosmosDB service. For requests where theConsistencyLevel
isConsistencyLevel.EVENTUAL
orConsistencyLevel.SESSION
, responses from the integrated cache are guaranteed to be no staler than value indicated by this maxIntegratedCacheStaleness.Default value is null
Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.
- Returns:
- Duration of maxIntegratedCacheStaleness
-
setMaxIntegratedCacheStaleness
public DedicatedGatewayRequestOptions setMaxIntegratedCacheStaleness(Duration maxIntegratedCacheStaleness) Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where theConsistencyLevel
isConsistencyLevel.EVENTUAL
orConsistencyLevel.SESSION
, responses from the integrated cache are guaranteed to be no staler than value indicated by this maxIntegratedCacheStaleness.Default value is null
Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.
- Parameters:
maxIntegratedCacheStaleness
- Max Integrated Cache Staleness duration- Returns:
- this DedicatedGatewayRequestOptions
-
isIntegratedCacheBypassed
public boolean isIntegratedCacheBypassed()Gets if the integrated cache is enabled or bypassed with the request in Azure CosmosDB service.Default value is false
- Returns:
- bypassIntegratedCache boolean value
-
setIntegratedCacheBypassed
Sets if integrated cache should be enabled or bypassed for the request in Azure CosmosDB service.Default value is false
- Parameters:
bypassIntegratedCache
- boolean value- Returns:
- this DedicatedGatewayRequestOptions
-