@@ -1622,50 +1622,46 @@ public Builder setDynamicChannelPoolEnabled(boolean enabled) {
16221622
16231623 // Granular DCP configuration setters with validation bounds
16241624 public Builder setDynamicPoolMaxRpc (int maxRpcPerChannel ) {
1625- Preconditions .checkArgument (maxRpcPerChannel >= 1 && maxRpcPerChannel <= 100 ,
1626- "maxRpcPerChannel must be in [1, 100]" );
1625+ Preconditions .checkArgument (
1626+ maxRpcPerChannel >= 1 && maxRpcPerChannel <= 100 , "maxRpcPerChannel must be in [1, 100]" );
16271627 this .dcpMaxRpcPerChannel = maxRpcPerChannel ;
16281628 return this ;
16291629 }
16301630
16311631 public Builder setDynamicPoolMinRpc (int minRpcPerChannel ) {
1632- Preconditions .checkArgument (minRpcPerChannel >= 1 ,
1633- "minRpcPerChannel must be >= 1" );
1632+ Preconditions .checkArgument (minRpcPerChannel >= 1 , "minRpcPerChannel must be >= 1" );
16341633 this .dcpMinRpcPerChannel = minRpcPerChannel ;
16351634 return this ;
16361635 }
16371636
16381637 public Builder setDynamicPoolScaleDownInterval (Duration interval ) {
16391638 Preconditions .checkNotNull (interval , "interval cannot be null" );
1640- Preconditions .checkArgument (!interval .isNegative () && !interval .isZero (),
1641- "interval must be > 0" );
16421639 Preconditions .checkArgument (
1643- interval .compareTo (Duration .ofSeconds (30 )) >= 0 ,
1644- "interval must be >= 30 seconds" );
1640+ !interval .isNegative () && !interval .isZero (), "interval must be > 0" );
1641+ Preconditions .checkArgument (
1642+ interval .compareTo (Duration .ofSeconds (30 )) >= 0 , "interval must be >= 30 seconds" );
16451643 Preconditions .checkArgument (
1646- interval .compareTo (Duration .ofMinutes (60 )) <= 0 ,
1647- "interval must be <= 60 minutes" );
1644+ interval .compareTo (Duration .ofMinutes (60 )) <= 0 , "interval must be <= 60 minutes" );
16481645 this .dcpScaleDownInterval = interval ;
16491646 return this ;
16501647 }
16511648
16521649 public Builder setDynamicPoolInitialSize (int initialSize ) {
1653- Preconditions .checkArgument (initialSize >= 1 && initialSize <= 256 ,
1654- "initialSize must be in [1, 256]" );
1650+ Preconditions .checkArgument (
1651+ initialSize >= 1 && initialSize <= 256 , "initialSize must be in [1, 256]" );
16551652 this .dcpInitialSize = initialSize ;
16561653 return this ;
16571654 }
16581655
16591656 public Builder setDynamicPoolMaxChannels (int maxChannels ) {
1660- Preconditions .checkArgument (maxChannels >= 1 && maxChannels <= 256 ,
1661- "maxChannels must be in [1, 256]" );
1657+ Preconditions .checkArgument (
1658+ maxChannels >= 1 && maxChannels <= 256 , "maxChannels must be in [1, 256]" );
16621659 this .dcpMaxChannels = maxChannels ;
16631660 return this ;
16641661 }
16651662
16661663 public Builder setDynamicPoolMinChannels (int minChannels ) {
1667- Preconditions .checkArgument (minChannels >= 1 ,
1668- "minChannels must be >= 1" );
1664+ Preconditions .checkArgument (minChannels >= 1 , "minChannels must be >= 1" );
16691665 this .dcpMinChannels = minChannels ;
16701666 return this ;
16711667 }
@@ -2097,12 +2093,29 @@ public boolean isDynamicChannelPoolEnabled() {
20972093 }
20982094
20992095 // Dynamic Channel Pool getters used by channel setup
2100- public Integer getDcpMaxRpcPerChannel () { return dcpMaxRpcPerChannel ; }
2101- public Integer getDcpMinRpcPerChannel () { return dcpMinRpcPerChannel ; }
2102- public Duration getDcpScaleDownInterval () { return dcpScaleDownInterval ; }
2103- public Integer getDcpInitialSize () { return dcpInitialSize ; }
2104- public Integer getDcpMaxChannels () { return dcpMaxChannels ; }
2105- public Integer getDcpMinChannels () { return dcpMinChannels ; }
2096+ public Integer getDcpMaxRpcPerChannel () {
2097+ return dcpMaxRpcPerChannel ;
2098+ }
2099+
2100+ public Integer getDcpMinRpcPerChannel () {
2101+ return dcpMinRpcPerChannel ;
2102+ }
2103+
2104+ public Duration getDcpScaleDownInterval () {
2105+ return dcpScaleDownInterval ;
2106+ }
2107+
2108+ public Integer getDcpInitialSize () {
2109+ return dcpInitialSize ;
2110+ }
2111+
2112+ public Integer getDcpMaxChannels () {
2113+ return dcpMaxChannels ;
2114+ }
2115+
2116+ public Integer getDcpMinChannels () {
2117+ return dcpMinChannels ;
2118+ }
21062119
21072120 public boolean isAutoThrottleAdministrativeRequests () {
21082121 return autoThrottleAdministrativeRequests ;
0 commit comments