File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 3030 */
3131public abstract class CosmosQueryRequestOptionsBase <T extends CosmosQueryRequestOptionsBase <?>> implements OverridableRequestOptions {
3232 private final static ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .CosmosDiagnosticsThresholdsAccessor thresholdsAccessor =
33- ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .getCosmosAsyncClientAccessor ();
33+ ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .getCosmosDiagnosticsThresholdsAccessor ();
3434
3535 private ConsistencyLevel consistencyLevel ;
3636 private ReadConsistencyStrategy readConsistencyStrategy ;
Original file line number Diff line number Diff line change 1414
1515public final class CosmosQueryRequestOptionsImpl extends CosmosQueryRequestOptionsBase <CosmosQueryRequestOptionsImpl > {
1616 private final static ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .CosmosDiagnosticsThresholdsAccessor thresholdsAccessor =
17- ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .getCosmosAsyncClientAccessor ();
17+ ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .getCosmosDiagnosticsThresholdsAccessor ();
1818 private String partitionKeyRangeId ;
1919 private Boolean scanInQueryEnabled ;
2020 private Boolean emitVerboseTracesInQuery ;
Original file line number Diff line number Diff line change @@ -1567,7 +1567,7 @@ public static void setCosmosDiagnosticsThresholdsAccessor(final CosmosDiagnostic
15671567 }
15681568 }
15691569
1570- public static CosmosDiagnosticsThresholdsAccessor getCosmosAsyncClientAccessor () {
1570+ public static CosmosDiagnosticsThresholdsAccessor getCosmosDiagnosticsThresholdsAccessor () {
15711571 if (!cosmosDiagnosticsThresholdsClassLoaded .get ()) {
15721572 logger .debug ("Initializing CosmosDiagnosticsThresholds..." );
15731573 ensureClassInitialized ("com.azure.cosmos.CosmosDiagnosticsThresholds" );
@@ -1581,6 +1581,14 @@ public static CosmosDiagnosticsThresholdsAccessor getCosmosAsyncClientAccessor()
15811581 return snapshot ;
15821582 }
15831583
1584+ /**
1585+ * @deprecated Use {@link #getCosmosDiagnosticsThresholdsAccessor()} instead.
1586+ */
1587+ @ Deprecated
1588+ public static CosmosDiagnosticsThresholdsAccessor getCosmosAsyncClientAccessor () {
1589+ return getCosmosDiagnosticsThresholdsAccessor ();
1590+ }
1591+
15841592 public interface CosmosDiagnosticsThresholdsAccessor {
15851593 Duration getPointReadLatencyThreshold (CosmosDiagnosticsThresholds thresholds );
15861594 Duration getNonPointReadLatencyThreshold (CosmosDiagnosticsThresholds thresholds );
Original file line number Diff line number Diff line change 2828 */
2929public class CosmosItemRequestOptions {
3030 private final static ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .CosmosDiagnosticsThresholdsAccessor thresholdsAccessor =
31- ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .getCosmosAsyncClientAccessor ();
31+ ImplementationBridgeHelpers .CosmosDiagnosticsThresholdsHelper .getCosmosDiagnosticsThresholdsAccessor ();
3232
3333 private ConsistencyLevel consistencyLevel ;
3434 private ReadConsistencyStrategy readConsistencyStrategy ;
You can’t perform that action at this time.
0 commit comments