MySQL 9.1.0
Source Code Documentation
Notification_context Class Reference

A convenience context class used to share information between the event handlers and the notifier. More...

#include <notification.h>

Public Member Functions

 Notification_context ()
 
void reset ()
 
void set_member_role_changed ()
 
void set_member_state_changed ()
 
void set_quorum_lost ()
 
void set_view_changed ()
 
void set_view_id (const std::string &v)
 
bool get_member_role_changed () const
 
bool get_member_state_changed () const
 
bool get_quorum_lost () const
 
bool get_view_changed () const
 
const std::string & get_view_id () const
 

Private Attributes

bool m_member_role_changed
 
bool m_member_state_changed
 
bool m_quorum_lost
 
bool m_view_changed
 
std::string m_view_id
 

Detailed Description

A convenience context class used to share information between the event handlers and the notifier.

It contains flags stating which notifications should be triggered and also the view identifier.

Constructor & Destructor Documentation

◆ Notification_context()

Notification_context::Notification_context ( )
inline

Member Function Documentation

◆ get_member_role_changed()

bool Notification_context::get_member_role_changed ( ) const
inline

◆ get_member_state_changed()

bool Notification_context::get_member_state_changed ( ) const
inline

◆ get_quorum_lost()

bool Notification_context::get_quorum_lost ( ) const
inline

◆ get_view_changed()

bool Notification_context::get_view_changed ( ) const
inline

◆ get_view_id()

const std::string & Notification_context::get_view_id ( ) const
inline

◆ reset()

void Notification_context::reset ( )
inline

◆ set_member_role_changed()

void Notification_context::set_member_role_changed ( )
inline

◆ set_member_state_changed()

void Notification_context::set_member_state_changed ( )
inline

◆ set_quorum_lost()

void Notification_context::set_quorum_lost ( )
inline

◆ set_view_changed()

void Notification_context::set_view_changed ( )
inline

◆ set_view_id()

void Notification_context::set_view_id ( const std::string &  v)
inline

Member Data Documentation

◆ m_member_role_changed

bool Notification_context::m_member_role_changed
private

◆ m_member_state_changed

bool Notification_context::m_member_state_changed
private

◆ m_quorum_lost

bool Notification_context::m_quorum_lost
private

◆ m_view_changed

bool Notification_context::m_view_changed
private

◆ m_view_id

std::string Notification_context::m_view_id
private

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