#include <oracle_event_engine_posix.h>
Additional Inherited Members | |
![]() | |
using | Duration = std::chrono::duration< int64_t, std::nano > |
using | OnConnectCallback = std::function< void(absl::StatusOr< std::unique_ptr< Endpoint > >)> |
Definition at line 142 of file oracle_event_engine_posix.h.
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Request cancellation of a task.
If the associated closure has already been scheduled to run, it will not be cancelled, and this function will return false.
If the associated callback has not been scheduled to run, it will be cancelled, and the associated std::function or Closure* will not be executed. In this case, Cancel will return true.
Implementation note: closures should be destroyed in a timely manner after execution or cancelliation (milliseconds), since any state bound to the closure may need to be destroyed for things to progress (e.g., if a closure holds a ref to some ref-counted object).
Implements grpc_event_engine::experimental::EventEngine.
Definition at line 186 of file oracle_event_engine_posix.h.
|
inlineoverridevirtual |
Request cancellation of a connection attempt.
If the associated connection has already been completed, it will not be cancelled, and this method will return false.
If the associated connection has not been completed, it will be cancelled, and this method will return true. The OnConnectCallback will not be called.
Implements grpc_event_engine::experimental::EventEngine.
Definition at line 164 of file oracle_event_engine_posix.h.
|
override |
Definition at line 421 of file oracle_event_engine_posix.cc.
|
inlineoverridevirtual |
Factory method to create a network listener / server.
Once a Listener is created and started, the on_accept callback will be called once asynchronously for each established connection. This method may return a non-OK status immediately if an error was encountered in any synchronous steps required to create the Listener. In this case, on_shutdown will never be called.
If this method returns a Listener, then on_shutdown will be invoked exactly once, when the Listener is shut down. The status passed to it will indicate if there was a problem during shutdown.
The provided MemoryAllocatorFactory is used to create MemoryAllocators for Endpoint construction.
Implements grpc_event_engine::experimental::EventEngine.
Definition at line 147 of file oracle_event_engine_posix.h.
|
inlineoverride |
Definition at line 168 of file oracle_event_engine_posix.h.
|
inlineoverridevirtual |
Implements grpc_event_engine::experimental::EventEngine.
Definition at line 167 of file oracle_event_engine_posix.h.
|
inlineoverridevirtual |
Asynchronously executes a task as soon as possible.
Closures scheduled with Run cannot be cancelled. The closure will not be deleted after it has been run, ownership remains with the caller.
Implements grpc_event_engine::experimental::EventEngine.
Definition at line 172 of file oracle_event_engine_posix.h.
|
inlineoverridevirtual |
Asynchronously executes a task as soon as possible.
Closures scheduled with Run cannot be cancelled. Unlike the overloaded Closure alternative, the std::function version's closure will be deleted by the EventEngine after the closure has been run.
This version of Run may be less performant than the Closure version in some scenarios. This overload is useful in situations where performance is not a critical concern.
Implements grpc_event_engine::experimental::EventEngine.
Definition at line 175 of file oracle_event_engine_posix.h.
|
inlineoverride |
Definition at line 178 of file oracle_event_engine_posix.h.
|
inlineoverride |
Definition at line 182 of file oracle_event_engine_posix.h.