public static class AutoScalerPolicy.Builder
extends java.lang.Object
Constructor and Description |
---|
AutoScalerPolicy.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)
@Deprecated public AutoScalerPolicy.Builder minPeriodBetweenExecs(long val)
minPeriodBetweenExecs(Duration)
public AutoScalerPolicy.Builder minPeriodBetweenExecs(Duration val)
@Deprecated public AutoScalerPolicy.Builder resizeUpStabilizationDelay(long val)
resizeUpStabilizationDelay(Duration)
public AutoScalerPolicy.Builder resizeUpStabilizationDelay(Duration val)
@Deprecated public AutoScalerPolicy.Builder resizeDownStabilizationDelay(long val)
resizeDownStabilizationDelay(Duration)
public AutoScalerPolicy.Builder resizeDownStabilizationDelay(Duration val)
public AutoScalerPolicy.Builder resizeOperator(ResizeOperator val)
public AutoScalerPolicy.Builder currentSizeOperator(com.google.common.base.Function<Entity,java.lang.Integer> 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)
@Deprecated public AutoScalerPolicy.Builder maxReachedNotificationDelay(long val)
maxReachedNotificationDelay(Duration)
public AutoScalerPolicy.Builder maxReachedNotificationDelay(Duration val)
public AutoScalerPolicy build()
public PolicySpec<AutoScalerPolicy> buildSpec()