Package io.servicetalk.client.api
Interface ScoreSupplier
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection,LoadBalancedAddress<C>,LoadBalancedConnection
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Enables components to expose a score.
-
Method Summary
-
Method Details
-
score
int score()Returns the current score of a resource.LoadBalancers prefer resources with a higher score.- Returns:
- the score
-