![]() |
MySQL 9.3.0
Source Code Documentation
|
Round-robin strategy. More...
#include <dest_static.h>
Public Member Functions | |
std::optional< std::uint32_t > | get_destination_index (const bool last_connection_successful, const std::uint32_t dest_pool_size) override |
![]() | |
virtual | ~StrategyHandler ()=default |
Private Attributes | |
bool | started_ {false} |
std::optional< std::uint32_t > | failed_instance_index_ |
Additional Inherited Members | |
![]() | |
std::uint32_t | index_pos_ {0} |
Round-robin strategy.
Move to next destination after each connection attempt. If end of the destination candidates list is reached then loop around. If destination candidates list is exhausted (after unsuccessful connection we tried every destinaion from the list and eventually went back to the position that failed at first) then fail the connection.
|
overridevirtual |
Implements StrategyHandler.
|
private |
|
private |