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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for Java