You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loadbalancer-experimental: Rename ConnectionPool* types to ConnectionSelector* (#3145)
Motivation:
A ConnectionPoolPolicy doesn't actually control pooling, but selection
from that pool. The name is also inconsistent with the thing it generates:
a ConnectionSelector.
Modifications:
Rename the types to ConnectionSelector* for more consistency.
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/ConnectionSelectorPolicies.java
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/ConnectionSelectorPolicy.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@
21
21
* Configuration of the policy for selecting connections from a pool to the same endpoint.
22
22
* @param <C> the concrete type of the {@link LoadBalancedConnection}
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/CorePoolConnectionSelector.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -83,13 +83,13 @@ public C select(List<C> connections, Predicate<C> selector) {
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/DefaultLoadBalancerBuilder.java
+13-13
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ final class DefaultLoadBalancerBuilder<ResolvedAddress, C extends LoadBalancedCo
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/DelegatingLoadBalancerBuilder.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,9 @@ public LoadBalancerBuilder<ResolvedAddress, C> backgroundExecutor(Executor backg
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/LinearSearchConnectionSelector.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -90,12 +90,12 @@ public C select(List<C> connections, Predicate<C> selector) {
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/P2CConnectionSelector.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -140,13 +140,13 @@ private C p2cPick(ThreadLocalRandom rnd, int randomSearchSpace, List<C> connecti
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/RoundRobinToDefaultLBMigrationProvider.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ public LoadBalancerFactory<ResolvedAddress, C> build() {
0 commit comments