public class CosmosConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CosmosConfig.CosmosConfigBuilder
Builder class for cosmos config
|
| Constructor and Description |
|---|
CosmosConfig(ResponseDiagnosticsProcessor responseDiagnosticsProcessor,
boolean queryMetricsEnabled)
Initialization
|
CosmosConfig(ResponseDiagnosticsProcessor responseDiagnosticsProcessor,
DatabaseThroughputConfig databaseThroughputConfig,
boolean queryMetricsEnabled)
Initialization
|
| Modifier and Type | Method and Description |
|---|---|
static CosmosConfig.CosmosConfigBuilder |
builder()
Create a CosmosConfigBuilder instance
|
DatabaseThroughputConfig |
getDatabaseThroughputConfig()
Gets the database throughput configuration.
|
ResponseDiagnosticsProcessor |
getResponseDiagnosticsProcessor()
Gets response diagnostics processor
|
boolean |
isQueryMetricsEnabled()
Gets the option to enable query metrics
|
@ConstructorProperties(value={"responseDiagnosticsProcessor","queryMetricsEnabled"}) public CosmosConfig(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, boolean queryMetricsEnabled)
responseDiagnosticsProcessor - must not be nullqueryMetricsEnabled - must not be null@ConstructorProperties(value={"responseDiagnosticsProcessor","databaseThroughputConfig","queryMetricsEnabled"}) public CosmosConfig(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, DatabaseThroughputConfig databaseThroughputConfig, boolean queryMetricsEnabled)
responseDiagnosticsProcessor - must not be nulldatabaseThroughputConfig - may be @{literal null}queryMetricsEnabled - must not be nullpublic ResponseDiagnosticsProcessor getResponseDiagnosticsProcessor()
public boolean isQueryMetricsEnabled()
public DatabaseThroughputConfig getDatabaseThroughputConfig()
public static CosmosConfig.CosmosConfigBuilder builder()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.