Package io.servicetalk.client.api
Interface ScoreSupplier
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection
,LoadBalancedAddress<C>
,LoadBalancedConnection
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection
,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection
public interface ScoreSupplier
Enables components to expose a score.
-
Method Summary
-
Method Details
-
score
int score()Returns the current score of a resource.LoadBalancer
s prefer resources with a higher score.- Returns:
- the score
-