GRPC C++  1.62.0
Namespaces | Data Structures | Functions
grpc_event_engine::experimental Namespace Reference

Namespaces

 internal
 
 slice_detail
 

Data Structures

class  EndpointConfig
 Collection of parameters used to configure client and server endpoints. More...
 
class  EventEngine
 The EventEngine Interface. More...
 
class  Extensible
 
class  MemoryAllocator
 
class  MemoryAllocatorFactory
 
class  MemoryRequest
 Reservation request - how much memory do we want to allocate? More...
 
class  MutableSlice
 
class  Slice
 
class  SliceBuffer
 A Wrapper around grpc_slice_buffer pointer. More...
 
class  Vector
 

Functions

void SetEventEngineFactory (absl::AnyInvocable< std::unique_ptr< EventEngine >()> factory)
 Replace gRPC's default EventEngine factory. More...
 
void EventEngineFactoryReset ()
 Reset gRPC's EventEngine factory to the built-in default. More...
 
std::unique_ptr< EventEngineCreateEventEngine ()
 Create an EventEngine using the default factory. More...
 

Function Documentation

◆ CreateEventEngine()

std::unique_ptr<EventEngine> grpc_event_engine::experimental::CreateEventEngine ( )

Create an EventEngine using the default factory.

◆ EventEngineFactoryReset()

void grpc_event_engine::experimental::EventEngineFactoryReset ( )

Reset gRPC's EventEngine factory to the built-in default.

Applications that have called SetEventEngineFactory can remove their custom factory using this method. The built-in EventEngine factories will be used going forward. This has no affect on any EventEngines that were created using the previous factories.

◆ SetEventEngineFactory()

void grpc_event_engine::experimental::SetEventEngineFactory ( absl::AnyInvocable< std::unique_ptr< EventEngine >()>  factory)

Replace gRPC's default EventEngine factory.

Applications may call SetEventEngineFactory at any time to replace the default factory used within gRPC. EventEngines will be created when necessary, when they are otherwise not provided by the application.

To be certain that none of the gRPC-provided built-in EventEngines are created, applications must set a custom EventEngine factory method before grpc is initialized.