26#ifndef ROUTING_CLASSIC_AWAIT_CLIENT_OR_SERVER_PROCESSOR_INCLUDED
27#define ROUTING_CLASSIC_AWAIT_CLIENT_OR_SERVER_PROCESSOR_INCLUDED
Definition: await_client_or_server.h:31
Stage
Definition: await_client_or_server.h:48
Stage stage() const
Definition: await_client_or_server.h:57
void stage(Stage stage)
Definition: await_client_or_server.h:56
AwaitClientOrServerProcessor(MysqlRoutingClassicConnectionBase *conn, std::function< void(stdx::expected< AwaitResult, std::error_code >)> on_done)
Definition: await_client_or_server.h:38
stdx::expected< Result, std::error_code > wait_both()
wait for an read-event from client and server at the same time.
Definition: await_client_or_server.cc:87
std::function< void(stdx::expected< AwaitResult, std::error_code >)> on_done_
Definition: await_client_or_server.h:66
stdx::expected< Result, std::error_code > init()
Definition: await_client_or_server.cc:68
std::optional< std::string_view > diagnostic_stage_name() const override
stage name of a staged processor.
Definition: await_client_or_server.cc:31
stdx::expected< Result, std::error_code > wait_server_cancelled()
Definition: await_client_or_server.cc:123
Stage stage_
Definition: await_client_or_server.h:64
stdx::expected< Result, std::error_code > process() override
Definition: await_client_or_server.cc:50
AwaitResult
Definition: await_client_or_server.h:33
stdx::expected< Result, std::error_code > wait_client_cancelled()
read-event from server while waiting for client command.
Definition: await_client_or_server.cc:138
base class of all the processors.
Definition: processor.h:61
Definition: classic_connection_base.h:57
Definition: expected.h:286
Define std::hash<Gtid>.
Definition: gtid.h:355