DedicatedGatewayRequestOptions Class
- java.
lang. Object - com.
azure. cosmos. models. DedicatedGatewayRequestOptions
- com.
Implements
public final class DedicatedGatewayRequestOptions
implements Serializable
Dedicated Gateway Request Options
Constructor Summary
| Constructor | Description |
|---|---|
| DedicatedGatewayRequestOptions() |
Constructor |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Duration |
getMaxIntegratedCacheStaleness()
Gets the staleness value associated with the request in the Azure CosmosDB service. |
| String |
getShardKey()
Gets the shard key value associated with the request in the Azure CosmosDB service to optionally specify a shard key to use the new sharding feature in dedicated gateway. |
| boolean |
isIntegratedCacheBypassed()
Gets if the integrated cache is enabled or bypassed with the request in Azure CosmosDB service. |
|
Dedicated |
setIntegratedCacheBypassed(boolean bypassIntegratedCache)
Sets if integrated cache should be enabled or bypassed for the request in Azure CosmosDB service. |
|
Dedicated |
setMaxIntegratedCacheStaleness(Duration maxIntegratedCacheStaleness)
Sets the staleness value associated with the request in the Azure CosmosDB service. |
|
Dedicated |
setShardKey(String shardKey)
Sets the shard key value associated with the request in the Azure CosmosDB service to optionally specify a shard key to use the new sharding feature in dedicated gateway. |
Methods inherited from java.lang.Object
Constructor Details
DedicatedGatewayRequestOptions
public DedicatedGatewayRequestOptions()
Constructor
Method Details
getMaxIntegratedCacheStaleness
public Duration getMaxIntegratedCacheStaleness()
Gets the staleness value associated with the request in the Azure CosmosDB service. For requests where the ConsistencyLevel is EVENTUAL or 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:
getShardKey
public String getShardKey()
Gets the shard key value associated with the request in the Azure CosmosDB service to optionally specify a shard key to use the new sharding feature in dedicated gateway.
Default value is null
Returns:
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:
setIntegratedCacheBypassed
public DedicatedGatewayRequestOptions setIntegratedCacheBypassed(boolean bypassIntegratedCache)
Sets if integrated cache should be enabled or bypassed for the request in Azure CosmosDB service.
Default value is false
Parameters:
Returns:
setMaxIntegratedCacheStaleness
public DedicatedGatewayRequestOptions setMaxIntegratedCacheStaleness(Duration maxIntegratedCacheStaleness)
Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where the ConsistencyLevel is EVENTUAL or 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:
Returns:
setShardKey
public DedicatedGatewayRequestOptions setShardKey(String shardKey)
Sets the shard key value associated with the request in the Azure CosmosDB service to optionally specify a shard key to use the new sharding feature in dedicated gateway.
Default value is null
Parameters:
Returns: