Compartilhar via


DatabaseThroughputConfig Class

  • java.lang.Object
    • com.azure.spring.data.cosmos.config.DatabaseThroughputConfig

public class DatabaseThroughputConfig

Throughput config for database creation

Constructor Summary

Constructor Description
DatabaseThroughputConfig(boolean autoScale, int requestUnits)

Constructor.

Method Summary

Modifier and Type Method and Description
int getRequestUnits()

Get the request units.

boolean isAutoScale()

Flag to indicate whether autoscale is enabled.

String toString()

Methods inherited from java.lang.Object

Constructor Details

DatabaseThroughputConfig

public DatabaseThroughputConfig(boolean autoScale, int requestUnits)

Constructor.

Parameters:

autoScale - flag to enable autoscale.
requestUnits - the request units.

Method Details

getRequestUnits

public int getRequestUnits()

Get the request units.

Returns:

The request units.

isAutoScale

public boolean isAutoScale()

Flag to indicate whether autoscale is enabled.

Returns:

Flag to indicate whether autoscale is enabled.

toString

public String toString()

Overrides:

DatabaseThroughputConfig.toString()

Applies to