All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.cosmos.models.DedicatedGatewayRequestOptions Maven / Gradle / Ivy

Go to download

This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API

There is a newer version: 4.60.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.models;

import com.azure.cosmos.util.Beta;

import java.time.Duration;

/**
 * Dedicated Gateway Request Options
 */
@Beta(value = Beta.SinceVersion.V4_15_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public final class DedicatedGatewayRequestOptions {

    private Duration maxIntegratedCacheStaleness;

    /**
     * Constructor
     */
    @Beta(value = Beta.SinceVersion.V4_15_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
    public DedicatedGatewayRequestOptions() {

    }

    /**
     * Gets the staleness value associated with the request in the Azure CosmosDB service. For requests where the {@link
     * com.azure.cosmos.ConsistencyLevel} is {@link com.azure.cosmos.ConsistencyLevel#EVENTUAL} or {@link com.azure.cosmos.ConsistencyLevel#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.

* * @return Duration of maxIntegratedCacheStaleness */ @Beta(value = Beta.SinceVersion.V4_15_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public Duration getMaxIntegratedCacheStaleness() { return maxIntegratedCacheStaleness; } /** * Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where the {@link * com.azure.cosmos.ConsistencyLevel} is {@link com.azure.cosmos.ConsistencyLevel#EVENTUAL} or {@link com.azure.cosmos.ConsistencyLevel#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.

* * @param maxIntegratedCacheStaleness Max Integrated Cache Staleness duration * @return this DedicatedGatewayRequestOptions */ @Beta(value = Beta.SinceVersion.V4_15_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public DedicatedGatewayRequestOptions setMaxIntegratedCacheStaleness(Duration maxIntegratedCacheStaleness) { this.maxIntegratedCacheStaleness = maxIntegratedCacheStaleness; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy