![]() |
MySQL 8.4.7
Source Code Documentation
|
A forward iterable container of destinations. More...
#include <destination.h>
Public Types | |
| using | value_type = std::unique_ptr< Destination > |
| using | container_type = std::list< value_type > |
| using | iterator = typename container_type::iterator |
| using | const_iterator = typename container_type::const_iterator |
| using | size_type = typename container_type::size_type |
Public Member Functions | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| template<class... Args> | |
| auto | emplace_back (Args &&...args) |
| emplace a Destination at the back of the container. More... | |
| void | push_back (value_type &&v) |
| bool | empty () const |
| check if destination container is empty. More... | |
| void | clear () |
| clear all values. More... | |
| size_type | size () const |
| number of destinations. More... | |
| bool | primary_already_used () const |
| Check if we already used the primaries and don't want to fallback. More... | |
| void | primary_already_used (const bool p) |
| Mark that the primary destinations are already used. More... | |
| bool | is_primary_destination () const |
| Check if destinations are primary destinations. More... | |
| void | set_is_primary_destination (const bool p) |
| Mark that the destinations are primary destinations. More... | |
Private Attributes | |
| container_type | destinations_ |
| bool | primary_already_used_ {false} |
| bool | is_primary_destination_ {false} |
A forward iterable container of destinations.
a PRIMARY destination set won't be failover from.
| using Destinations::const_iterator = typename container_type::const_iterator |
| using Destinations::container_type = std::list<value_type> |
| using Destinations::iterator = typename container_type::iterator |
| using Destinations::size_type = typename container_type::size_type |
| using Destinations::value_type = std::unique_ptr<Destination> |
|
inline |
|
inline |
|
inline |
clear all values.
|
inline |
emplace a Destination at the back of the container.
|
inline |
check if destination container is empty.
| true | if container is empty. |
|
inline |
|
inline |
|
inline |
Check if destinations are primary destinations.
| true | destinations are primary destinations. |
| false | destinations are secondary destinations. |
|
inline |
Check if we already used the primaries and don't want to fallback.
| true | primaries already used |
| false | primaries are not yet used |
|
inline |
Mark that the primary destinations are already used.
| p | true if PRIMARY destinations are already used. |
|
inline |
|
inline |
Mark that the destinations are primary destinations.
| p | true if desitnations are PRIMARY destinations. |
|
inline |
number of destinations.
|
private |
|
private |
|
private |