Package io.grpc.util
Class OutlierDetectionLoadBalancer.OutlierDetectionPicker
- java.lang.Object
-
- io.grpc.LoadBalancer.SubchannelPicker
-
- io.grpc.util.OutlierDetectionLoadBalancer.OutlierDetectionPicker
-
- Enclosing class:
- OutlierDetectionLoadBalancer
class OutlierDetectionLoadBalancer.OutlierDetectionPicker extends LoadBalancer.SubchannelPicker
This picker delegates the actual picking logic to a wrapped delegate, but associates aClientStreamTracer
with each pick to track the results of each subchannel stream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
OutlierDetectionLoadBalancer.OutlierDetectionPicker.ResultCountingClientStreamTracerFactory
Builds instances of aClientStreamTracer
that increments the call count in the tracker for each closed stream.
-
Field Summary
Fields Modifier and Type Field Description private LoadBalancer.SubchannelPicker
delegate
-
Constructor Summary
Constructors Constructor Description OutlierDetectionPicker(LoadBalancer.SubchannelPicker delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancer.PickResult
pickSubchannel(LoadBalancer.PickSubchannelArgs args)
Make a balancing decision for a new RPC.-
Methods inherited from class io.grpc.LoadBalancer.SubchannelPicker
requestConnection
-
-
-
-
Field Detail
-
delegate
private final LoadBalancer.SubchannelPicker delegate
-
-
Constructor Detail
-
OutlierDetectionPicker
OutlierDetectionPicker(LoadBalancer.SubchannelPicker delegate)
-
-
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
-
-