Public Member Functions | List of all members
grpc_core::LoadBalancingPolicy::SubchannelPicker Class Referenceabstract

#include <lb_policy.h>

Inheritance diagram for grpc_core::LoadBalancingPolicy::SubchannelPicker:
Inheritance graph
[legend]

Public Member Functions

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

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 mutex, so they do not have to be thread-safe.

Definition at line 260 of file lb_policy.h.

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:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36