@ThreadSafe @ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1771") public abstract static class LoadBalancer.SubchannelPicker extends Object
Constructor and Description |
---|
SubchannelPicker() |
Modifier and Type | Method and Description |
---|---|
abstract LoadBalancer.PickResult |
pickSubchannel(LoadBalancer.PickSubchannelArgs args)
Make a balancing decision for a new RPC.
|
void |
requestConnection()
Tries to establish connections now so that the upcoming RPC may then just pick a ready
connection without having to connect first.
|
public abstract LoadBalancer.PickResult pickSubchannel(LoadBalancer.PickSubchannelArgs args)
args
- the pick argumentspublic void requestConnection()
No-op if unsupported.