Package io.micronaut.data.cosmos.config
Class ThroughputSettings
- java.lang.Object
-
- io.micronaut.data.cosmos.config.ThroughputSettings
-
- Direct Known Subclasses:
CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings,CosmosDatabaseConfiguration.DefaultThroughputSettings
public class ThroughputSettings extends java.lang.ObjectThroughput settings for database and container.- Since:
- 3.9.0
- Author:
- radovanradic
-
-
Constructor Summary
Constructors Constructor Description ThroughputSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.cosmos.models.ThroughputPropertiescreateThroughputProperties()java.lang.IntegergetRequestUnits()booleanisAutoScale()voidsetAutoScale(boolean autoScale)Sets the auto scaled indicator for throughput.voidsetRequestUnits(java.lang.Integer requestUnits)Sets the request units.
-
-
-
Method Detail
-
getRequestUnits
public java.lang.Integer getRequestUnits()
- Returns:
- the request units
-
setRequestUnits
public void setRequestUnits(java.lang.Integer requestUnits)
Sets the request units.- Parameters:
requestUnits- the request units
-
isAutoScale
public boolean isAutoScale()
- Returns:
- gets an indicator telling whether throughput is auto scaled
-
setAutoScale
public void setAutoScale(boolean autoScale)
Sets the auto scaled indicator for throughput.- Parameters:
autoScale- auto scale value
-
createThroughputProperties
public com.azure.cosmos.models.ThroughputProperties createThroughputProperties()
- Returns:
- an instance of
ThroughputPropertiesbased on these settings and null ifrequestUnitsnot greater than zero
-
-