Package io.servicetalk.client.api
Interface LoadBalancedConnection
-
- All Superinterfaces:
AsyncCloseable
,ListenableAsyncCloseable
,ScoreSupplier
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection
public interface LoadBalancedConnection extends ListenableAsyncCloseable, ScoreSupplier
A connection managed by aLoadBalancer
.Note:
ScoreSupplier
contract provides this connection's score, where 0.0 is the lowest score and 1.0 is the highest.LoadBalancer
s prefer connections with a higher score.
-
-
Method Summary
-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose
-
Methods inherited from interface io.servicetalk.client.api.ScoreSupplier
score
-
-