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

Interface for accessing per-call state. More...

#include <lb_policy.h>

Public Member Functions

 CallState ()=default
 
virtual ~CallState ()=default
 
virtual void * Alloc (size_t size)=0
 Allocates memory associated with the call, which will be automatically freed when the call is complete. More...
 
virtual const BackendMetricDataGetBackendMetricData ()=0
 Returns the backend metric data returned by the server for the call, or null if no backend metric data was returned. More...
 

Detailed Description

Interface for accessing per-call state.

Implemented by the client channel and used by the SubchannelPicker.

Constructor & Destructor Documentation

◆ CallState()

grpc_core::LoadBalancingPolicy::CallState::CallState ( )
default

◆ ~CallState()

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

Member Function Documentation

◆ Alloc()

virtual void* grpc_core::LoadBalancingPolicy::CallState::Alloc ( size_t  size)
pure virtual

Allocates memory associated with the call, which will be automatically freed when the call is complete.

It is more efficient to use this than to allocate memory directly for allocations that need to be made on a per-call basis.

◆ GetBackendMetricData()

virtual const BackendMetricData* grpc_core::LoadBalancingPolicy::CallState::GetBackendMetricData ( )
pure virtual

Returns the backend metric data returned by the server for the call, or null if no backend metric data was returned.


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