Skip to content

Commit

Permalink
Restore unintentionally removed RoundRobinLoadBalancerFactory API (#…
Browse files Browse the repository at this point in the history
…2849)

Motivation:

japicmp report:
```
***! MODIFIED CLASS: PUBLIC FINAL io.servicetalk.loadbalancer.RoundRobinLoadBalancerFactory  (not serializable)
        ===  CLASS FILE FORMAT VERSION: 52.0 <- 52.0
        ===  UNCHANGED SUPERCLASS: java.lang.Object (<- java.lang.Object)
        ---! REMOVED METHOD: PUBLIC(-) io.servicetalk.client.api.LoadBalancer newLoadBalancer(io.servicetalk.concurrent.api.Publisher, io.servicetalk.client.api.ConnectionFactory, java.lang.String)
```
  • Loading branch information
idelpivnitskiy authored Feb 21, 2024
1 parent e1c95f8 commit 37cfb1b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ public <T extends C> LoadBalancer<T> newLoadBalancer(
linearSearchSpace, healthCheckConfig);
}

@Override
public LoadBalancer<C> newLoadBalancer(
final Publisher<? extends Collection<? extends ServiceDiscovererEvent<ResolvedAddress>>> eventPublisher,
final ConnectionFactory<ResolvedAddress, C> connectionFactory,
final String targetResource) {
return new RoundRobinLoadBalancer<>(id, targetResource, eventPublisher, connectionFactory,
linearSearchSpace, healthCheckConfig);
}

@Override
public ExecutionStrategy requiredOffloads() {
// We do not block
Expand Down

0 comments on commit 37cfb1b

Please sign in to comment.