Package io.grpc
Class LoadBalancer.FixedResultPicker
- java.lang.Object
-
- io.grpc.LoadBalancer.SubchannelPicker
-
- io.grpc.LoadBalancer.FixedResultPicker
-
- Enclosing class:
- LoadBalancer
public static final class LoadBalancer.FixedResultPicker extends LoadBalancer.SubchannelPicker
A picker that always returns the same result.
-
-
Constructor Summary
Constructors Constructor Description FixedResultPicker(LoadBalancer.PickResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
LoadBalancer.PickResult
pickSubchannel(LoadBalancer.PickSubchannelArgs args)
Make a balancing decision for a new RPC.String
toString()
-
Methods inherited from class io.grpc.LoadBalancer.SubchannelPicker
requestConnection
-
-
-
-
Constructor Detail
-
FixedResultPicker
public FixedResultPicker(LoadBalancer.PickResult result)
-
-
Method Detail
-
pickSubchannel
public LoadBalancer.PickResult pickSubchannel(LoadBalancer.PickSubchannelArgs args)
Description copied from class:LoadBalancer.SubchannelPicker
Make a balancing decision for a new RPC.- Specified by:
pickSubchannel
in classLoadBalancer.SubchannelPicker
- Parameters:
args
- the pick arguments
-
-