CosmosDBAccount.UpdateStages.WithConsistencyPolicy Interface

public static interface CosmosDBAccount.UpdateStages.WithConsistencyPolicy

The stage of the cosmos db update allowing to set the consistency policy.

Method Summary

Modifier and Type Method and Description
abstract WithOptionals withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)

The consistency policy for the CosmosDB account.

abstract WithOptionals withEventualConsistency()

The consistency policy for the CosmosDB account.

abstract WithOptionals withSessionConsistency()

The consistency policy for the CosmosDB account.

abstract WithOptionals withStrongConsistency()

The consistency policy for the CosmosDB account.

Method Details

withBoundedStalenessConsistency

public abstract CosmosDBAccount.UpdateStages.WithOptionals withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)

The consistency policy for the CosmosDB account.

Parameters:

maxStalenessPrefix - the max staleness prefix
maxIntervalInSeconds - the max interval in seconds

Returns:

the next stage of the definition

withEventualConsistency

public abstract CosmosDBAccount.UpdateStages.WithOptionals withEventualConsistency()

The consistency policy for the CosmosDB account.

Returns:

the next stage of the definition

withSessionConsistency

public abstract CosmosDBAccount.UpdateStages.WithOptionals withSessionConsistency()

The consistency policy for the CosmosDB account.

Returns:

the next stage of the definition

withStrongConsistency

public abstract CosmosDBAccount.UpdateStages.WithOptionals withStrongConsistency()

The consistency policy for the CosmosDB account.

Returns:

the next stage of the definition

Applies to