Skip to content

Commit defe1bb

Browse files
committed
docs(gax-grpc): add warning about high resize delta values to setter in javadoc
1 parent 387c68e commit defe1bb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ public abstract static class Builder {
179179

180180
public abstract Builder setPreemptiveRefreshEnabled(boolean enabled);
181181

182+
/**
183+
* Sets the maximum number of channels that can be added or removed in a single resize cycle.
184+
* This acts as a rate limiter to prevent wild fluctuations.
185+
*
186+
* <p><b>Warning:</b> Higher values for resize delta may still result in performance degradation
187+
* during spikes due to rapid scaling.
188+
*/
182189
public abstract Builder setMaxResizeDelta(int count);
183190

184191
abstract ChannelPoolSettings autoBuild();

0 commit comments

Comments
 (0)