次の方法で共有


CosmosContainerProactiveInitConfigBuilder Class

  • java.lang.Object
    • com.azure.cosmos.CosmosContainerProactiveInitConfigBuilder

public final class CosmosContainerProactiveInitConfigBuilder

Constructor Summary

Constructor Description
CosmosContainerProactiveInitConfigBuilder(List<CosmosContainerIdentity> cosmosContainerIdentities)

Instantiates CosmosContainerProactiveInitConfigBuilder

Method Summary

Modifier and Type Method and Description
CosmosContainerProactiveInitConfig build()

Builds CosmosContainerProactiveInitConfig with the provided properties

CosmosContainerProactiveInitConfigBuilder setAggressiveWarmupDuration(Duration aggressiveWarmupDuration)

Sets the time window represented as a Duration within which connections will be opened aggressively and in a blocking manner and outside which connections will be opened defensively and in a non-blocking manner

CosmosContainerProactiveInitConfigBuilder setProactiveConnectionRegionsCount(int numProactiveConnectionRegions)

Sets the no.

Methods inherited from java.lang.Object

Constructor Details

CosmosContainerProactiveInitConfigBuilder

public CosmosContainerProactiveInitConfigBuilder(List cosmosContainerIdentities)

Instantiates CosmosContainerProactiveInitConfigBuilder

Parameters:

cosmosContainerIdentities - the container identities - this parameter must be non-empty

Method Details

build

public CosmosContainerProactiveInitConfig build()

Builds CosmosContainerProactiveInitConfig with the provided properties

Returns:

setAggressiveWarmupDuration

public CosmosContainerProactiveInitConfigBuilder setAggressiveWarmupDuration(Duration aggressiveWarmupDuration)

Sets the time window represented as a Duration within which connections will be opened aggressively and in a blocking manner and outside which connections will be opened defensively and in a non-blocking manner

Parameters:

aggressiveWarmupDuration - this denotes the aggressive proactive connection establishment duration to be set

Returns:

setProactiveConnectionRegionsCount

public CosmosContainerProactiveInitConfigBuilder setProactiveConnectionRegionsCount(int numProactiveConnectionRegions)

Sets the no. of regions to proactively connect to.

The no of proactive regions to connect to belong to the preferred list of regions In order to minimize latencies associated with warming up caches and opening connections the no. of proactive connection regions cannot be more than CosmosContainerProactiveInitConfigBuilder#MAX_NO_OF_PROACTIVE_CONNECTION_REGIONS.

Parameters:

numProactiveConnectionRegions - the no of proactive connection regions

Returns:

Applies to