public static class AutoScalerPolicy.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public AutoScalerPolicy.Builder id(java.lang.String val)
public AutoScalerPolicy.Builder name(java.lang.String val)
public AutoScalerPolicy.Builder metric(AttributeSensor<? extends java.lang.Number> val)
public AutoScalerPolicy.Builder entityWithMetric(Entity val)
public AutoScalerPolicy.Builder metricLowerBound(java.lang.Number val)
public AutoScalerPolicy.Builder metricUpperBound(java.lang.Number val)
public AutoScalerPolicy.Builder metricRange(java.lang.Number min, java.lang.Number max)
public AutoScalerPolicy.Builder minPoolSize(int val)
public AutoScalerPolicy.Builder maxPoolSize(int val)
public AutoScalerPolicy.Builder sizeRange(int min, int max)
public AutoScalerPolicy.Builder resizeUpIterationIncrement(java.lang.Integer val)
public AutoScalerPolicy.Builder resizeUpIterationMax(java.lang.Integer val)
public AutoScalerPolicy.Builder resizeDownIterationIncrement(java.lang.Integer val)
public AutoScalerPolicy.Builder resizeDownIterationMax(java.lang.Integer val)
public AutoScalerPolicy.Builder minPeriodBetweenExecs(Duration val)
public AutoScalerPolicy.Builder resizeUpStabilizationDelay(Duration val)
public AutoScalerPolicy.Builder resizeDownStabilizationDelay(Duration val)
public AutoScalerPolicy.Builder resizeOperator(ResizeOperator val)
public AutoScalerPolicy.Builder currentSizeOperator(<any> val)
public AutoScalerPolicy.Builder poolHotSensor(BasicNotificationSensor<?> val)
public AutoScalerPolicy.Builder poolColdSensor(BasicNotificationSensor<?> val)
public AutoScalerPolicy.Builder poolOkSensor(BasicNotificationSensor<?> val)
public AutoScalerPolicy.Builder maxSizeReachedSensor(BasicNotificationSensor<? super MaxPoolSizeReachedEvent> val)
public AutoScalerPolicy.Builder maxReachedNotificationDelay(Duration val)
@Deprecated public AutoScalerPolicy build()
buildSpec()
, or use PolicySpec
directlypublic PolicySpec<AutoScalerPolicy> buildSpec()