GRPC C++  1.39.1
Public Member Functions
grpc_core::ClientChannel::LoadBalancedCall::LbCallState Class Reference

Public Member Functions

 LbCallState (LoadBalancedCall *lb_call)
 
void * Alloc (size_t size) override
 Allocates memory associated with the call, which will be automatically freed when the call is complete. More...
 
const LoadBalancingPolicy::BackendMetricDataGetBackendMetricData () override
 Returns the backend metric data returned by the server for the call, or null if no backend metric data was returned. More...
 
absl::string_view ExperimentalGetCallAttribute (const char *key) override
 EXPERIMENTAL API. More...
 
- Public Member Functions inherited from grpc_core::LoadBalancingPolicy::CallState
 CallState ()=default
 
virtual ~CallState ()=default
 

Constructor & Destructor Documentation

◆ LbCallState()

grpc_core::ClientChannel::LoadBalancedCall::LbCallState::LbCallState ( LoadBalancedCall lb_call)
inlineexplicit

Member Function Documentation

◆ Alloc()

void* grpc_core::ClientChannel::LoadBalancedCall::LbCallState::Alloc ( size_t  size)
inlineoverridevirtual

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.

Implements grpc_core::LoadBalancingPolicy::CallState.

◆ ExperimentalGetCallAttribute()

absl::string_view grpc_core::ClientChannel::LoadBalancedCall::LbCallState::ExperimentalGetCallAttribute ( const char *  key)
inlineoverridevirtual

EXPERIMENTAL API.

Returns the value of the call attribute key. Keys are static strings, so an attribute can be accessed by an LB policy implementation only if it knows about the internal key. Returns a null string_view if key not found.

Implements grpc_core::LoadBalancingPolicy::CallState.

◆ GetBackendMetricData()

const LoadBalancingPolicy::BackendMetricData* grpc_core::ClientChannel::LoadBalancedCall::LbCallState::GetBackendMetricData ( )
inlineoverridevirtual

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

Implements grpc_core::LoadBalancingPolicy::CallState.


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