Package io.grpc.util
Class OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder
- java.lang.Object
-
- io.grpc.util.OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder
-
- Enclosing class:
- OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection
public static final class OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder extends java.lang.Object
Builds new instances ofOutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Integer
enforcementPercentage
(package private) java.lang.Integer
minimumHosts
(package private) java.lang.Integer
requestVolume
(package private) java.lang.Integer
stdevFactor
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
setStdevFactor
public OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder setStdevFactor(java.lang.Integer stdevFactor)
The product of this and the standard deviation of success rates determine the ejection threshold.
-
setEnforcementPercentage
public OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder setEnforcementPercentage(java.lang.Integer enforcementPercentage)
Only eject this percentage of outliers.
-
setMinimumHosts
public OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder setMinimumHosts(java.lang.Integer minimumHosts)
The minimum amount of hosts needed for success rate ejection.
-
setRequestVolume
public OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection.Builder setRequestVolume(java.lang.Integer requestVolume)
The minimum address request volume to be considered for success rate ejection.
-
build
public OutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection build()
Builds a new instance ofOutlierDetectionLoadBalancer.OutlierDetectionLoadBalancerConfig.SuccessRateEjection
.
-
-