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
|
| Modifier and Type | Method and Description |
|---|---|
static CosmosConfig.CosmosConfigBuilder |
builder()
Create a CosmosConfigBuilder instance
|
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 nullpublic ResponseDiagnosticsProcessor getResponseDiagnosticsProcessor()
public boolean isQueryMetricsEnabled()
public static CosmosConfig.CosmosConfigBuilder builder()
Copyright © 2021 Microsoft Corporation. All rights reserved.