GRPC Core  9.0.0
Public Member Functions
grpc_core::LoadBalancingPolicy::SubchannelPicker Class Referenceabstract

A subchannel picker is the object used to pick the subchannel to use for a given call. More...

#include <lb_policy.h>

Public Member Functions

 SubchannelPicker ()=default
 
virtual ~SubchannelPicker ()=default
 
virtual PickResult Pick (PickArgs args)=0
 

Detailed Description

A subchannel picker is the object used to pick the subchannel to use for a given call.

This is implemented by the LB policy and used by the client channel to perform picks.

Pickers are intended to encapsulate all of the state and logic needed on the data plane (i.e., to actually process picks for individual calls sent on the channel) while excluding all of the state and logic needed on the control plane (i.e., resolver updates, connectivity state notifications, etc); the latter should live in the LB policy object itself.

Currently, pickers are always accessed from within the client_channel data plane combiner, so they do not have to be thread-safe.

Constructor & Destructor Documentation

◆ SubchannelPicker()

grpc_core::LoadBalancingPolicy::SubchannelPicker::SubchannelPicker ( )
default

◆ ~SubchannelPicker()

virtual grpc_core::LoadBalancingPolicy::SubchannelPicker::~SubchannelPicker ( )
virtualdefault

Member Function Documentation

◆ Pick()

virtual PickResult grpc_core::LoadBalancingPolicy::SubchannelPicker::Pick ( PickArgs  args)
pure virtual

The documentation for this class was generated from the following file: