DatabaseThroughputConfig Class
- java.
lang. Object - com.
azure. spring. data. cosmos. config. DatabaseThroughputConfig
- com.
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
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure SDK for Java