你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CosmosConfig.CosmosConfigBuilder Class
- java.
lang. Object - com.
azure. spring. data. cosmos. config. CosmosConfig. CosmosConfigBuilder
- com.
public static class CosmosConfig.CosmosConfigBuilder
Builder class for cosmos config
Method Summary
Modifier and Type | Method and Description |
---|---|
Cosmos |
build()
Build a Cosmos |
Cosmos |
enableDatabaseThroughput(boolean autoscale, int requestUnits)
Enable database throughput |
Cosmos |
enableIndexMetrics(boolean indexMetricsEnabled)
Set index |
Cosmos |
enableQueryMetrics(boolean queryMetricsEnabled)
Set query |
Cosmos |
maxBufferedItemCount(int maxBufferedItemCount)
Set max |
Cosmos |
maxDegreeOfParallelism(int maxDegreeOfParallelism)
Set max |
Cosmos |
responseContinuationTokenLimitInKb(int responseContinuationTokenLimitInKb)
Set response |
Cosmos |
responseDiagnosticsProcessor(ResponseDiagnosticsProcessor responseDiagnosticsProcessor)
Set response |
String | toString() |
Methods inherited from java.lang.Object
Method Details
build
public CosmosConfig build()
Build a CosmosConfig instance
Returns:
enableDatabaseThroughput
public CosmosConfig.CosmosConfigBuilder enableDatabaseThroughput(boolean autoscale, int requestUnits)
Enable database throughput
Parameters:
Returns:
enableIndexMetrics
public CosmosConfig.CosmosConfigBuilder enableIndexMetrics(boolean indexMetricsEnabled)
Set indexMetricsEnabled
Parameters:
Returns:
enableQueryMetrics
public CosmosConfig.CosmosConfigBuilder enableQueryMetrics(boolean queryMetricsEnabled)
Set queryMetricsEnabled
Parameters:
Returns:
maxBufferedItemCount
public CosmosConfig.CosmosConfigBuilder maxBufferedItemCount(int maxBufferedItemCount)
Set maxBufferedItemCount
Parameters:
Returns:
maxDegreeOfParallelism
public CosmosConfig.CosmosConfigBuilder maxDegreeOfParallelism(int maxDegreeOfParallelism)
Set maxDegreeOfParallelism
Parameters:
Returns:
responseContinuationTokenLimitInKb
public CosmosConfig.CosmosConfigBuilder responseContinuationTokenLimitInKb(int responseContinuationTokenLimitInKb)
Set responseContinuationTokenLimitInKb
Parameters:
Returns:
responseDiagnosticsProcessor
public CosmosConfig.CosmosConfigBuilder responseDiagnosticsProcessor(ResponseDiagnosticsProcessor responseDiagnosticsProcessor)
Set responseDiagnosticsProcessor
Parameters:
Returns:
toString
public String toString()
Overrides:
CosmosConfig.CosmosConfigBuilder.toString()