Skip to content

Commit

Permalink
loadbalancer-experimental: make RichServiceDiscovererEvent package pr…
Browse files Browse the repository at this point in the history
…ivate

Motivation:

As we prepare to move the DefaultLoadBalancer out of experimental we
need to scrutinize the API we expose as it effectively becomes
permanent. RichServiceDiscovererEvent is one of those API's I don't
think we want to commit to just yet.

Modifications:

- List the changes

Result:

What is the result of this change?
  • Loading branch information
bryce-anderson committed Dec 6, 2024
1 parent 69c9cb3 commit 7100d7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
* A richer {@link ServiceDiscovererEvent} that can carry weight and priority information.
* @param <ResolvedAddress> the type of the resolved address.
*/
public final class RichServiceDiscovererEvent<ResolvedAddress> implements ServiceDiscovererEvent<ResolvedAddress> {
final class RichServiceDiscovererEvent<ResolvedAddress> implements ServiceDiscovererEvent<ResolvedAddress> {

private final ResolvedAddress address;
private final Status status;
private final double weight;
private final int priority;

public RichServiceDiscovererEvent(ResolvedAddress address, Status status, double weight, int priority) {
RichServiceDiscovererEvent(ResolvedAddress address, Status status, double weight, int priority) {
if (weight < 0d) {
throw new IllegalArgumentException("Illegal weight: " + weight);
}
Expand Down

0 comments on commit 7100d7d

Please sign in to comment.