MySQL 8.0.39
Source Code Documentation
FirstAvailableDestination Class Reference
Inheritance diagram for FirstAvailableDestination:
[legend]

Public Member Functions

 FirstAvailableDestination (std::string id, std::string hostname, uint16_t port, DestFirstAvailable *balancer, size_t ndx)
 
void connect_status (std::error_code ec) override
 status of the last failed connect(). More...
 
- Public Member Functions inherited from Destination
 Destination (std::string id, std::string hostname, uint16_t port)
 
virtual ~Destination ()=default
 
std::string id () const
 unique, opaque identifier of a destination. More...
 
std::string hostname () const
 hostname to connect to. More...
 
uint16_t port () const noexcept
 TCP port to connect to. More...
 
virtual bool good () const
 check if the destination is "good". More...
 

Private Attributes

DestFirstAvailablebalancer_
 
size_t ndx_
 

Constructor & Destructor Documentation

◆ FirstAvailableDestination()

FirstAvailableDestination::FirstAvailableDestination ( std::string  id,
std::string  hostname,
uint16_t  port,
DestFirstAvailable balancer,
size_t  ndx 
)
inline

Member Function Documentation

◆ connect_status()

void FirstAvailableDestination::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.

Member Data Documentation

◆ balancer_

DestFirstAvailable* FirstAvailableDestination::balancer_
private

◆ ndx_

size_t FirstAvailableDestination::ndx_
private

The documentation for this class was generated from the following file: