◆ StateTrackingDestination()
StateTrackingDestination::StateTrackingDestination |
( |
std::string |
id, |
|
|
std::string |
addr, |
|
|
uint16_t |
port, |
|
|
DestNextAvailable * |
balancer, |
|
|
size_t |
ndx |
|
) |
| |
|
inline |
◆ connect_status()
void StateTrackingDestination::connect_status |
( |
std::error_code |
| ) |
|
|
inlineoverridevirtual |
status of the last failed connect().
called by MySQLRouting after a connect() to all addresses of the destination failed.
Reimplemented from Destination.
◆ good()
bool StateTrackingDestination::good |
( |
| ) |
const |
|
inlineoverridevirtual |
check if the destination is "good".
If the destination is not "good", it will be skipped by MySQLRouting.
- Return values
-
false | if destination is known to be bad |
true | otherwise |
Reimplemented from Destination.
◆ balancer_
◆ ndx_
size_t StateTrackingDestination::ndx_ |
|
private |
The documentation for this class was generated from the following file: