MySQL 8.4.2
Source Code Documentation
|
MySQLRoutingContext holds data used by MySQLRouting (1 per plugin instances) and MySQLRoutingConnection instances (many instances). More...
#include <context.h>
Public Attributes | |
std::atomic< uint16_t > | info_active_routes_ {0} |
Number of active routes. More... | |
std::atomic< uint64_t > | info_handled_routes_ {0} |
Number of handled routes, not used at the moment. More... | |
Private Attributes | |
const RoutingConfig | routing_config_ |
const std::string | name_ |
Descriptive name of the connection routing. More... | |
std::mutex | mutex_conn_errors_ |
size_t | thread_stack_size_ = mysql_harness::kDefaultStackSizeInKiloBytes |
memory in kilobytes allocated for thread's stack More... | |
TlsServerContext * | client_ssl_ctx_ {} |
DestinationTlsContext * | destination_tls_context_ {} |
SharedQuarantineHandler | shared_quarantine_handler_ |
Callbacks for communicating with quarantined destination candidates instance. More... | |
BlockedEndpoints | blocked_endpoints_ |
MySQLRoutingContext holds data used by MySQLRouting (1 per plugin instances) and MySQLRoutingConnection instances (many instances).
It is created and owned by MySQLRouting while MySQLRoutingConnection objects hold reference to it.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void MySQLRoutingContext::decrease_info_active_routes | ( | ) |
|
inline |
|
inline |
get the SSL context for the server side of the route.
dest_id | unique id of the destination |
hostname | name of the destination host |
nullptr | if creating tls-context failed. |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
identifier part of the name.
name has the form 'routing:{id}'
|
inline |
|
inline |
|
inline |
|
inline |
void MySQLRoutingContext::increase_info_active_routes | ( | ) |
void MySQLRoutingContext::increase_info_handled_routes | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
get the SSL context for the client side of the route.
|
inlinenoexcept |
|
inline |
|
inline |
|
private |
|
private |
|
private |
std::atomic<uint16_t> MySQLRoutingContext::info_active_routes_ {0} |
Number of active routes.
std::atomic<uint64_t> MySQLRoutingContext::info_handled_routes_ {0} |
Number of handled routes, not used at the moment.
|
mutableprivate |
|
private |
Descriptive name of the connection routing.
|
private |
|
private |
Callbacks for communicating with quarantined destination candidates instance.
|
private |
memory in kilobytes allocated for thread's stack