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
Throughput settings for database and container.
- Since:
- 3.9.0
- Author:
- radovanradic
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.azure.cosmos.models.ThroughputPropertiesbooleanvoidsetAutoScale(boolean autoScale) Sets the auto scaled indicator for throughput.voidsetRequestUnits(Integer requestUnits) Sets the request units.
- 
Constructor Details- 
ThroughputSettingspublic ThroughputSettings()
 
- 
- 
Method Details- 
getRequestUnits- Returns:
- the request units
 
- 
setRequestUnitsSets the request units.- Parameters:
- requestUnits- the request units
 
- 
isAutoScalepublic boolean isAutoScale()- Returns:
- gets an indicator telling whether throughput is auto scaled
 
- 
setAutoScalepublic void setAutoScale(boolean autoScale) Sets the auto scaled indicator for throughput.- Parameters:
- autoScale- auto scale value
 
- 
createThroughputPropertiespublic com.azure.cosmos.models.ThroughputProperties createThroughputProperties()- Returns:
- an instance of ThroughputPropertiesbased on these settings and null ifrequestUnitsnot greater than zero
 
 
-