Package io.servicetalk.client.api
Interface ScoreSupplier
-
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection
,LoadBalancedAddress<C>
,LoadBalancedConnection
public interface ScoreSupplier
Enables components to expose a score.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
score()
Returns the current score of a resource.
-
-
-
Method Detail
-
score
int score()
Returns the current score of a resource.LoadBalancer
s prefer resources with a higher score.- Returns:
- the score
-
-