From 081d99c9afed8f087d6ebbd79650a00cd08052a4 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Fri, 22 Apr 2022 22:13:39 -0700 Subject: [PATCH] Updated API name (#28476) --- .../java/com/azure/cosmos/ThroughputControlGroupConfig.java | 2 +- .../config/ThroughputControlGroupFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfig.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfig.java index 6c42b9e59f8e7..ee8cc8fa61bcb 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfig.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfig.java @@ -87,7 +87,7 @@ public boolean isDefault() { * @return {@code true} request will continue on original request flow if throughput control controller failed on initialization. {@code false} otherwise. */ @Beta(value = Beta.SinceVersion.V4_28_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) - public boolean isContinueOnInitError() { + public boolean continueOnInitError() { return continueOnInitError; } } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/throughputControl/config/ThroughputControlGroupFactory.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/throughputControl/config/ThroughputControlGroupFactory.java index 7fb6919df6214..c743f933fa2fb 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/throughputControl/config/ThroughputControlGroupFactory.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/throughputControl/config/ThroughputControlGroupFactory.java @@ -22,7 +22,7 @@ public static LocalThroughputControlGroup createThroughputLocalControlGroup(Thro groupConfig.getTargetThroughput(), groupConfig.getTargetThroughputThreshold(), groupConfig.isDefault(), - groupConfig.isContinueOnInitError()); + groupConfig.continueOnInitError()); } public static GlobalThroughputControlGroup createThroughputGlobalControlGroup( @@ -40,7 +40,7 @@ public static GlobalThroughputControlGroup createThroughputGlobalControlGroup( groupConfig.getTargetThroughput(), groupConfig.getTargetThroughputThreshold(), groupConfig.isDefault(), - groupConfig.isContinueOnInitError(), + groupConfig.continueOnInitError(), BridgeInternal.getControlContainerFromThroughputGlobalControlConfig(globalControlConfig), globalControlConfig.getControlItemRenewInterval(), globalControlConfig.getControlItemExpireInterval());