26#ifndef ROUTING_CLASSIC_CONNECTION_INCLUDED
27#define ROUTING_CLASSIC_CONNECTION_INCLUDED
43 std::unique_ptr<ConnectionBase> client_connection,
44 std::unique_ptr<RoutingConnectionBase> client_routing_connection,
47 context, route_destination,
std::move(client_connection),
48 std::move(client_routing_connection),
std::move(remove_callback)} {}
53 template <
typename... Args>
54 [[nodiscard]]
static std::shared_ptr<MysqlRoutingClassicConnectionBase>
61 return std::shared_ptr<MysqlRoutingClassicConnectionBase>(
Definition: connection.h:44
MySQLRoutingContext & context()
Definition: connection.h:53
MySQLRoutingContext holds data used by MySQLRouting (1 per plugin instances) and MySQLRoutingConnecti...
Definition: context.h:59
Definition: classic_connection_base.h:56
Definition: classic_connection.h:36
static std::shared_ptr< MysqlRoutingClassicConnectionBase > create(Args &&... args)
Definition: classic_connection.h:55
MysqlRoutingClassicConnection(MySQLRoutingContext &context, RouteDestination *route_destination, std::unique_ptr< ConnectionBase > client_connection, std::unique_ptr< RoutingConnectionBase > client_routing_connection, std::function< void(MySQLRoutingConnectionBase *)> remove_callback)
Definition: classic_connection.h:41
void async_run() override
Definition: classic_connection.cc:34
void stash_server_conn() override
Definition: classic_connection.cc:44
Manage destinations for a Connection Routing.
Definition: destination.h:189
Definition: gcs_xcom_synode.h:64