MySQL 9.1.0
Source Code Documentation
router_options.h File Reference
#include "mysqlrouter/cluster_metadata.h"
#include "mysqlrouter/metadata_cache_export.h"
#include "mysqlrouter/mysql_session.h"
#include <chrono>
#include <optional>

Go to the source code of this file.

Classes

class  RouterOptions
 Represents the Router options in v2_routers view in the metadata schema. More...
 

Enumerations

enum class  ReadOnlyTargets { all , read_replicas , secondaries }
 
enum class  QuorumConnectionLostAllowTraffic { none , read , all }
 

Functions

METADATA_CACHE_EXPORT std::string to_string (const ReadOnlyTargets mode)
 
METADATA_CACHE_EXPORT std::string to_string (const QuorumConnectionLostAllowTraffic allow)
 

Variables

static const auto kDefautlInvalidatedClusterRoutingPolicy
 
static const ReadOnlyTargets kDefaultReadOnlyTargets
 
static const QuorumConnectionLostAllowTraffic kDefaultQuorumConnectionLostAllowTraffic
 

Enumeration Type Documentation

◆ QuorumConnectionLostAllowTraffic

Enumerator
none 
read 
all 

◆ ReadOnlyTargets

enum class ReadOnlyTargets
strong
Enumerator
all 
read_replicas 
secondaries 

Function Documentation

◆ to_string() [1/2]

METADATA_CACHE_EXPORT std::string to_string ( const QuorumConnectionLostAllowTraffic  allow)

◆ to_string() [2/2]

METADATA_CACHE_EXPORT std::string to_string ( const ReadOnlyTargets  mode)

Variable Documentation

◆ kDefaultQuorumConnectionLostAllowTraffic

const QuorumConnectionLostAllowTraffic kDefaultQuorumConnectionLostAllowTraffic
static

◆ kDefaultReadOnlyTargets

const ReadOnlyTargets kDefaultReadOnlyTargets
static

◆ kDefautlInvalidatedClusterRoutingPolicy