GRPC Core  43.0.0
Namespaces | Data Structures | Functions
grpc_event_engine::experimental Namespace Reference

Namespaces

 detail
 
 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...
 
bool operator== (const EventEngine::TaskHandle &lhs, const EventEngine::TaskHandle &rhs)
 
bool operator!= (const EventEngine::TaskHandle &lhs, const EventEngine::TaskHandle &rhs)
 
std::ostream & operator<< (std::ostream &out, const EventEngine::TaskHandle &handle)
 
bool operator== (const EventEngine::ConnectionHandle &lhs, const EventEngine::ConnectionHandle &rhs)
 
bool operator!= (const EventEngine::ConnectionHandle &lhs, const EventEngine::ConnectionHandle &rhs)
 
std::ostream & operator<< (std::ostream &out, const EventEngine::ConnectionHandle &handle)
 
template<typename Sink >
void AbslStringify (Sink &out, const EventEngine::ConnectionHandle &handle)
 
template<typename Sink >
void AbslStringify (Sink &out, const EventEngine::TaskHandle &handle)
 

Function Documentation

◆ AbslStringify() [1/2]

template<typename Sink >
void grpc_event_engine::experimental::AbslStringify ( Sink &  out,
const EventEngine::ConnectionHandle handle 
)

◆ AbslStringify() [2/2]

template<typename Sink >
void grpc_event_engine::experimental::AbslStringify ( Sink &  out,
const EventEngine::TaskHandle handle 
)

◆ 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.

◆ operator!=() [1/2]

bool grpc_event_engine::experimental::operator!= ( const EventEngine::ConnectionHandle lhs,
const EventEngine::ConnectionHandle rhs 
)

◆ operator!=() [2/2]

bool grpc_event_engine::experimental::operator!= ( const EventEngine::TaskHandle lhs,
const EventEngine::TaskHandle rhs 
)

◆ operator<<() [1/2]

std::ostream& grpc_event_engine::experimental::operator<< ( std::ostream &  out,
const EventEngine::ConnectionHandle handle 
)

◆ operator<<() [2/2]

std::ostream& grpc_event_engine::experimental::operator<< ( std::ostream &  out,
const EventEngine::TaskHandle handle 
)

◆ operator==() [1/2]

bool grpc_event_engine::experimental::operator== ( const EventEngine::ConnectionHandle lhs,
const EventEngine::ConnectionHandle rhs 
)

◆ operator==() [2/2]

bool grpc_event_engine::experimental::operator== ( const EventEngine::TaskHandle lhs,
const EventEngine::TaskHandle rhs 
)

◆ 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.