Skip to content

Commit

Permalink
loadbalancer-experimental: make more interfaces public (#2829)
Browse files Browse the repository at this point in the history
Motivation:

There were a few more interfaces that need to be public before
things are really usable.

Modifications:

Make them public.
  • Loading branch information
bryce-anderson authored Feb 8, 2024
1 parent 2eafa74 commit 796585c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* @param <ResolvedAddress> The resolved address type.
* @param <C> The type of connection.
*/
interface LoadBalancerBuilder<ResolvedAddress, C extends LoadBalancedConnection> {
public interface LoadBalancerBuilder<ResolvedAddress, C extends LoadBalancedConnection> {
/**
* Set the {@code loadBalancingPolicy} to use with this load balancer.
* @param loadBalancingPolicy the {@code loadBalancingPolicy} to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,11 @@ public static final class Builder {

private boolean successfulActiveHealthCheckUnejectHost = true;

OutlierDetectorConfig build() {
/**
* Build the OutlierDetectorConfig.
* @return the OutlierDetectorConfig.
*/
public OutlierDetectorConfig build() {
return new OutlierDetectorConfig(ewmaHalfLife, consecutive5xx,
interval, baseEjectionTime,
maxEjectionPercentage, enforcingConsecutive5xx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public final class XdsHealthCheckerFactory<ResolvedAddress> implements HealthChe

private final OutlierDetectorConfig config;

XdsHealthCheckerFactory(final OutlierDetectorConfig config) {
public XdsHealthCheckerFactory(final OutlierDetectorConfig config) {
this.config = requireNonNull(config, "config");
}

Expand Down

0 comments on commit 796585c

Please sign in to comment.