Skip to content

Commit b17aa56

Browse files
committed
docs(gax-grpc): reference MAX_RESIZE_DELTA constant in javadoc
1 parent 588387c commit b17aa56

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@ class ChannelPool extends ManagedChannel {
8484
private final AtomicInteger indexTicker = new AtomicInteger();
8585
private final String authority;
8686

87-
// The number of consecutive resize cycles to wait before logging a warning about repeated resizing.
88-
// This is an arbitrary value chosen to detect repeated requests for changes (multiple continuous increase or decrease attempts) without being too sensitive.
87+
// The number of consecutive resize cycles to wait before logging a warning about repeated
88+
// resizing.
89+
// This is an arbitrary value chosen to detect repeated requests for changes (multiple continuous
90+
// increase or decrease attempts) without being too sensitive.
8991
private static final int CONSECUTIVE_RESIZE_THRESHOLD = 5;
9092

91-
// Tracks the number of consecutive resize cycles where a resize actually occurred (either expand or shrink).
93+
// Tracks the number of consecutive resize cycles where a resize actually occurred (either expand
94+
// or shrink).
9295
// Used to detect repeated resizing activity and log a warning.
9396
private int consecutiveResizes = 0;
9497

sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPoolSettings.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ public abstract class ChannelPoolSettings {
9696
* The maximum number of channels that can be added or removed at a time.
9797
*
9898
* <p>This setting limits the rate at which the channel pool can grow or shrink in a single resize
99-
* period. The default value is 2. Increasing this value can help the pool better handle sudden
100-
* bursts or spikes in requests by allowing it to scale up faster. Regardless of this setting, the
101-
* number of channels will never exceed {@link #getMaxChannelCount()}.
99+
* period. The default value is {@value #MAX_RESIZE_DELTA}. Increasing this value can help the
100+
* pool better handle sudden bursts or spikes in requests by allowing it to scale up faster.
101+
* Regardless of this setting, the number of channels will never exceed {@link
102+
* #getMaxChannelCount()}.
102103
*/
103104
public abstract int getMaxResizeDelta();
104105

0 commit comments

Comments
 (0)