From 4a5f80781022695353df2c23d0fd945fa1e527a9 Mon Sep 17 00:00:00 2001 From: Idel Pivnitskiy Date: Fri, 13 Dec 2024 15:41:39 -0800 Subject: [PATCH] loadbalancer-experimental: remove/hide unused public API Motivation: Reduce public API that is not currently used. Modifications: - Make `LoadBalancingPolicy.name()` visibility pkg-private; - Remove `RequestTracker.ErrorClass.isLocal()`; --- .../loadbalancer/LoadBalancingPolicy.java | 2 +- .../loadbalancer/P2CLoadBalancingPolicy.java | 2 +- .../loadbalancer/RequestTracker.java | 18 ++++-------------- .../RoundRobinLoadBalancingPolicy.java | 2 +- .../loadbalancer/DefaultLoadBalancerTest.java | 2 +- 5 files changed, 8 insertions(+), 18 deletions(-) diff --git a/servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/LoadBalancingPolicy.java b/servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/LoadBalancingPolicy.java index 600e9aaa57..3e7bad80d9 100644 --- a/servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/LoadBalancingPolicy.java +++ b/servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/LoadBalancingPolicy.java @@ -39,7 +39,7 @@ public abstract class LoadBalancingPolicy buildSelector(final List buildSelector(final List