Package com.azure.cosmos.models
Class DedicatedGatewayRequestOptions
- java.lang.Object
-
- com.azure.cosmos.models.DedicatedGatewayRequestOptions
-
@Beta(value=V4_15_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class DedicatedGatewayRequestOptions extends Object
Dedicated Gateway Request Options
-
-
Constructor Summary
Constructors Constructor Description DedicatedGatewayRequestOptions()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
getMaxIntegratedCacheStaleness()
Gets the staleness value associated with the request in the Azure CosmosDB service.DedicatedGatewayRequestOptions
setMaxIntegratedCacheStaleness(Duration maxIntegratedCacheStaleness)
Sets the staleness value associated with the request in the Azure CosmosDB service.
-
-
-
Constructor Detail
-
DedicatedGatewayRequestOptions
@Beta(value=V4_15_0, warningText="Preview API - subject to change in non-backwards compatible way") public DedicatedGatewayRequestOptions()
Constructor
-
-
Method Detail
-
getMaxIntegratedCacheStaleness
@Beta(value=V4_15_0, warningText="Preview API - subject to change in non-backwards compatible way") public Duration 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
@Beta(value=V4_15_0, warningText="Preview API - subject to change in non-backwards compatible way") 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
-
-