26#ifndef MYSQLROUTER_ROUTING_INCLUDED
27#define MYSQLROUTER_ROUTING_INCLUDED
static constexpr int kDefaultConnectTimeout
Definition: mysql_session.h:155
RoutingStrategy ROUTING_EXPORT get_routing_strategy(const std::string &value)
Returns RoutingStrategy for its literal representation.
Definition: routing.cc:91
constexpr const std::chrono::seconds kDefaultUnreachableDestinationRefreshInterval
The number of seconds that MySQL Router waits between checking for reachability of an unreachable des...
Definition: routing.h:101
AccessMode ROUTING_EXPORT get_access_mode(const std::string &value)
Returns AccessMode for its literal representation.
Definition: routing.cc:62
constexpr const unsigned long long kDefaultMaxConnectErrors
Maximum connect or handshake errors per host.
Definition: routing.h:67
std::string ROUTING_EXPORT get_routing_strategy_names(bool metadata_cache)
Get comma separated list of all routing stategy names for a given routing type (metadata cache or sta...
Definition: routing.cc:98
AccessMode
Modes supported by Routing plugin.
Definition: routing.h:104
RoutingStrategy
Routing strategies supported by Routing plugin.
Definition: routing.h:111
@ kRoundRobinWithFallback
std::string ROUTING_EXPORT get_routing_strategy_name(RoutingStrategy routing_strategy) noexcept
Returns literal name of given routing strategy.
Definition: routing.cc:118
constexpr const int kDefaultWaitTimeout
Timeout for idling clients (in seconds).
Definition: routing.h:45
constexpr const std::chrono::seconds kDefaultClientConnectTimeout
Timeout waiting for handshake response from client.
Definition: routing.h:88
constexpr const std::chrono::seconds kDefaultDestinationConnectionTimeout
Timeout connecting to destination (in seconds).
Definition: routing.h:58
std::string ROUTING_EXPORT get_access_mode_names()
Get comma separated list of all access mode names.
Definition: routing.cc:68
std::string ROUTING_EXPORT get_access_mode_name(AccessMode access_mode) noexcept
Returns literal name of given access mode.
Definition: routing.cc:74
constexpr const unsigned int kDefaultNetBufferLength
Default net buffer length.
Definition: routing.h:80
constexpr const int kDefaultMaxConnections
Max number of active routes for this routing instance.
Definition: routing.h:51
constexpr const std::chrono::milliseconds kDefaultConnectionSharingDelay
delay in milliseconds before an idling connection may be moved to the pool when connection sharing is...
Definition: routing.h:94
constexpr const std::string_view kDefaultBindAddress
Default bind address.
Definition: routing.h:72
#define ROUTING_EXPORT
Definition: routing_export.h:15
double seconds()
Definition: task.cc:310