6565import java .util .List ;
6666import java .util .Map ;
6767import java .util .Set ;
68- import java .util .logging .Logger ;
6968import javax .annotation .Nonnull ;
7069import javax .annotation .Nullable ;
7170import org .threeten .bp .Duration ;
9998 * }</pre>
10099 */
101100public class EnhancedBigtableStubSettings extends StubSettings <EnhancedBigtableStubSettings > {
102- private static final Logger logger =
103- Logger .getLogger (EnhancedBigtableStubSettings .class .getName ());
104-
105101 // The largest message that can be received is a 256 MB ReadRowsResponse.
106102 private static final int MAX_MESSAGE_SIZE = 256 * 1024 * 1024 ;
107103 private static final String SERVER_DEFAULT_APP_PROFILE_ID = "" ;
@@ -145,7 +141,6 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
145141 .setRetryDelayMultiplier (2.0 )
146142 .setMaxRetryDelay (Duration .ofMinutes (1 ))
147143 .setMaxAttempts (10 )
148- .setJittered (true )
149144 .setInitialRpcTimeout (Duration .ofMinutes (30 ))
150145 .setRpcTimeoutMultiplier (2.0 )
151146 .setMaxRpcTimeout (Duration .ofMinutes (30 ))
@@ -172,7 +167,6 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
172167 .setRetryDelayMultiplier (2.0 )
173168 .setMaxRetryDelay (Duration .ofMinutes (1 ))
174169 .setMaxAttempts (10 )
175- .setJittered (true )
176170 .setInitialRpcTimeout (Duration .ofMinutes (1 ))
177171 .setRpcTimeoutMultiplier (2.0 )
178172 .setMaxRpcTimeout (Duration .ofMinutes (10 ))
@@ -211,7 +205,6 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
211205 .setRetryDelayMultiplier (2.0 )
212206 .setMaxRetryDelay (Duration .ofMinutes (1 ))
213207 .setMaxAttempts (10 )
214- .setJittered (true )
215208 .setInitialRpcTimeout (Duration .ofMinutes (30 ))
216209 .setRpcTimeoutMultiplier (1.0 )
217210 .setMaxRpcTimeout (Duration .ofMinutes (30 ))
@@ -255,7 +248,6 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
255248 private final String instanceId ;
256249 private final String appProfileId ;
257250 private final boolean isRefreshingChannel ;
258- private ImmutableList <String > primedTableIds ;
259251
260252 private final ServerStreamingCallSettings <Query , Row > readRowsSettings ;
261253 private final UnaryCallSettings <Query , Row > readRowSettings ;
@@ -277,7 +269,7 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
277269
278270 private final MetricsProvider metricsProvider ;
279271 @ Nullable private final String metricsEndpoint ;
280- @ Nonnull private final boolean areInternalMetricsEnabled ;
272+ private final boolean areInternalMetricsEnabled ;
281273 private final String jwtAudience ;
282274
283275 private EnhancedBigtableStubSettings (Builder builder ) {
@@ -302,7 +294,6 @@ private EnhancedBigtableStubSettings(Builder builder) {
302294 instanceId = builder .instanceId ;
303295 appProfileId = builder .appProfileId ;
304296 isRefreshingChannel = builder .isRefreshingChannel ;
305- primedTableIds = builder .primedTableIds ;
306297 metricsProvider = builder .metricsProvider ;
307298 metricsEndpoint = builder .metricsEndpoint ;
308299 areInternalMetricsEnabled = builder .areInternalMetricsEnabled ;
@@ -362,7 +353,7 @@ public boolean isRefreshingChannel() {
362353 */
363354 @ Deprecated
364355 public List <String > getPrimedTableIds () {
365- return primedTableIds ;
356+ return ImmutableList . of () ;
366357 }
367358
368359 /**
@@ -739,7 +730,6 @@ public static class Builder extends StubSettings.Builder<EnhancedBigtableStubSet
739730 private String instanceId ;
740731 private String appProfileId ;
741732 private boolean isRefreshingChannel ;
742- private ImmutableList <String > primedTableIds ;
743733 private String jwtAudience ;
744734
745735 private final ServerStreamingCallSettings .Builder <Query , Row > readRowsSettings ;
@@ -760,7 +750,7 @@ public static class Builder extends StubSettings.Builder<EnhancedBigtableStubSet
760750 private final UnaryCallSettings .Builder <PrepareQueryRequest , PrepareResponse >
761751 prepareQuerySettings ;
762752
763- private FeatureFlags .Builder featureFlags ;
753+ private final FeatureFlags .Builder featureFlags ;
764754
765755 private MetricsProvider metricsProvider ;
766756 @ Nullable private String metricsEndpoint ;
@@ -777,7 +767,6 @@ public static class Builder extends StubSettings.Builder<EnhancedBigtableStubSet
777767 private Builder () {
778768 this .appProfileId = SERVER_DEFAULT_APP_PROFILE_ID ;
779769 this .isRefreshingChannel = true ;
780- primedTableIds = ImmutableList .of ();
781770 setCredentialsProvider (defaultCredentialsProviderBuilder ().build ());
782771 metricsProvider = DefaultMetricsProvider .INSTANCE ;
783772 this .areInternalMetricsEnabled = true ;
@@ -914,7 +903,6 @@ private Builder(EnhancedBigtableStubSettings settings) {
914903 instanceId = settings .instanceId ;
915904 appProfileId = settings .appProfileId ;
916905 isRefreshingChannel = settings .isRefreshingChannel ;
917- primedTableIds = settings .primedTableIds ;
918906 metricsProvider = settings .metricsProvider ;
919907 metricsEndpoint = settings .getMetricsEndpoint ();
920908 areInternalMetricsEnabled = settings .areInternalMetricsEnabled ;
@@ -1037,7 +1025,6 @@ public Builder setRefreshingChannel(boolean isRefreshingChannel) {
10371025 */
10381026 @ Deprecated
10391027 public Builder setPrimedTableIds (String ... tableIds ) {
1040- this .primedTableIds = ImmutableList .copyOf (tableIds );
10411028 return this ;
10421029 }
10431030
@@ -1057,7 +1044,7 @@ public boolean isRefreshingChannel() {
10571044 */
10581045 @ Deprecated
10591046 public List <String > getPrimedTableIds () {
1060- return primedTableIds ;
1047+ return ImmutableList . of () ;
10611048 }
10621049
10631050 /**
@@ -1307,7 +1294,6 @@ public String toString() {
13071294 .add ("instanceId" , instanceId )
13081295 .add ("appProfileId" , appProfileId )
13091296 .add ("isRefreshingChannel" , isRefreshingChannel )
1310- .add ("primedTableIds" , primedTableIds )
13111297 .add ("readRowsSettings" , readRowsSettings )
13121298 .add ("readRowSettings" , readRowSettings )
13131299 .add ("sampleRowKeysSettings" , sampleRowKeysSettings )
0 commit comments