![]()  | 
  
    MySQL 9.5.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 | 
  Public Member Functions inherited from StrategyHandler | |
| virtual | ~StrategyHandler ()=default | 
Private Attributes | |
| bool | started_ {false} | 
| std::optional< std::uint32_t > | failed_instance_index_ | 
Additional Inherited Members | |
  Protected Attributes inherited from StrategyHandler | |
| 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 |