public interface LoadBalancedConnection extends ListenableAsyncCloseable, ScoreSupplier
LoadBalancer
.
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.
onClose
closeAsync, closeAsyncGracefully
score