CosmosConfig Class
- java.
lang. Object - com.
azure. spring. data. cosmos. config. CosmosConfig
- com.
public class CosmosConfig
Config properties of CosmosDB
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cosmos |
builder()
Create a Cosmos |
Database |
getDatabaseThroughputConfig()
Gets the database throughput configuration. |
int |
getMaxBufferedItemCount()
Gets the value of max |
int |
getMaxDegreeOfParallelism()
Gets the value of max |
int |
getResponseContinuationTokenLimitInKb()
Gets the value of response |
Response |
getResponseDiagnosticsProcessor()
Gets response diagnostics processor |
boolean |
isIndexMetricsEnabled()
Gets the option to enable query metrics |
boolean |
isQueryMetricsEnabled()
Gets the option to enable query metrics |
Methods inherited from java.lang.Object
Constructor Details
CosmosConfig
public CosmosConfig(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, boolean queryMetricsEnabled)
Initialization
Parameters:
CosmosConfig
public CosmosConfig(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, DatabaseThroughputConfig databaseThroughputConfig, boolean queryMetricsEnabled)
Initialization
Parameters:
Method Details
builder
public static CosmosConfig.CosmosConfigBuilder builder()
Create a CosmosConfigBuilder instance
Returns:
getDatabaseThroughputConfig
public DatabaseThroughputConfig getDatabaseThroughputConfig()
Gets the database throughput configuration.
Returns:
getMaxBufferedItemCount
public int getMaxBufferedItemCount()
Gets the value of maxBufferedItemCount
Returns:
getMaxDegreeOfParallelism
public int getMaxDegreeOfParallelism()
Gets the value of maxDegreeOfParallelism
Returns:
getResponseContinuationTokenLimitInKb
public int getResponseContinuationTokenLimitInKb()
Gets the value of responseContinuationTokenLimitInKb
Returns:
getResponseDiagnosticsProcessor
public ResponseDiagnosticsProcessor getResponseDiagnosticsProcessor()
Gets response diagnostics processor
Returns:
isIndexMetricsEnabled
public boolean isIndexMetricsEnabled()
Gets the option to enable query metrics
Returns:
isQueryMetricsEnabled
public boolean isQueryMetricsEnabled()
Gets the option to enable query metrics
Returns:
Applies to
Azure SDK for Java