GRPC Core  18.0.0
Public Member Functions | Static Public Member Functions
grpc_core::ServiceConfig Class Reference

#include <service_config.h>

Public Member Functions

 ServiceConfig (const grpc_channel_args *args, std::string json_string, Json json, grpc_error_handle *error)
 
 ~ServiceConfig () override
 
const std::string & json_string () const
 
ServiceConfigParser::ParsedConfigGetGlobalParsedConfig (size_t index)
 Retrieves the global parsed config at index index. More...
 
const ServiceConfigParser::ParsedConfigVectorGetMethodParsedConfigVector (const grpc_slice &path) const
 Retrieves the vector of parsed configs for the method identified by path. More...
 
- Public Member Functions inherited from grpc_core::RefCounted< ServiceConfig >
 ~RefCounted ()=default
 
RefCountedPtr< ServiceConfigRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ServiceConfigRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
RefCountedPtr< ServiceConfigRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ServiceConfigRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Static Public Member Functions

static RefCountedPtr< ServiceConfigCreate (const grpc_channel_args *args, absl::string_view json_string, grpc_error_handle *error)
 Creates a new service config from parsing json_string. More...
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::RefCounted< ServiceConfig >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Constructor & Destructor Documentation

◆ ServiceConfig()

grpc_core::ServiceConfig::ServiceConfig ( const grpc_channel_args args,
std::string  json_string,
Json  json,
grpc_error_handle error 
)

◆ ~ServiceConfig()

grpc_core::ServiceConfig::~ServiceConfig ( )
override

Member Function Documentation

◆ Create()

RefCountedPtr< ServiceConfig > grpc_core::ServiceConfig::Create ( const grpc_channel_args args,
absl::string_view  json_string,
grpc_error_handle error 
)
static

Creates a new service config from parsing json_string.

Returns null on parse error.

◆ GetGlobalParsedConfig()

ServiceConfigParser::ParsedConfig* grpc_core::ServiceConfig::GetGlobalParsedConfig ( size_t  index)
inline

Retrieves the global parsed config at index index.

The lifetime of the returned object is tied to the lifetime of the ServiceConfig object.

◆ GetMethodParsedConfigVector()

const ServiceConfigParser::ParsedConfigVector * grpc_core::ServiceConfig::GetMethodParsedConfigVector ( const grpc_slice path) const

Retrieves the vector of parsed configs for the method identified by path.

The lifetime of the returned vector and contained objects is tied to the lifetime of the ServiceConfig object.

◆ json_string()

const std::string& grpc_core::ServiceConfig::json_string ( ) const
inline

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