@ThreadSafe public abstract static class LoadBalancer.SubchannelPicker extends Object
Note: Implementations should override exactly one pickSubchannel
.
Constructor and Description |
---|
SubchannelPicker() |
Modifier and Type | Method and Description |
---|---|
LoadBalancer.PickResult |
pickSubchannel(Attributes affinity,
Metadata headers)
Deprecated.
this signature is going to be removed in the next minor release. Implementations
should instead override the
pickSubchannel(LoadBalancer.PickSubchannelArgs) . |
LoadBalancer.PickResult |
pickSubchannel(LoadBalancer.PickSubchannelArgs args)
Make a balancing decision for a new RPC.
|
@Deprecated public LoadBalancer.PickResult pickSubchannel(Attributes affinity, Metadata headers)
pickSubchannel(LoadBalancer.PickSubchannelArgs)
.affinity
- the affinity attributes provided via CallOptions.withAffinity(io.grpc.Attributes)
headers
- the headers container of the RPC. It can be mutated within this method.public LoadBalancer.PickResult pickSubchannel(LoadBalancer.PickSubchannelArgs args)
args
- the pick arguments