MySQL 9.1.0
Source Code Documentation
Protocol_change_notification Class Reference

Notification used to finish a protocol change. More...

#include <gcs_xcom_notification.h>

Inheritance diagram for Protocol_change_notification:
[legend]

Public Member Functions

 Protocol_change_notification (xcom_protocol_change_functor *functor, Gcs_xcom_communication_protocol_changer *protocol_changer, Gcs_tagged_lock::Tag const tag)
 Constructor for Protocol_change_notification. More...
 
 ~Protocol_change_notification () override
 Destructor for Protocol_change_notification. More...
 
- Public Member Functions inherited from Parameterized_notification< false >
 Parameterized_notification ()=default
 Constructor for Parameterized_notification. More...
 
 ~Parameterized_notification () override=default
 Destructor for Parameterized_notification. More...
 
bool operator() () override
 Task implemented by this notification which calls do_execute. More...
 
- Public Member Functions inherited from Gcs_xcom_notification
 Gcs_xcom_notification ()=default
 Constructor for Gcs_xcom_notification which an abstract class that represents notifications sent from XCOM to MySQL GCS. More...
 
virtual ~Gcs_xcom_notification ()=default
 Destructor for the Gcs_xcom_notification. More...
 

Private Member Functions

void do_execute () override
 Task implemented by this notification. More...
 
 Protocol_change_notification (Protocol_change_notification const &)
 
Protocol_change_notificationoperator= (Protocol_change_notification const &)
 

Private Attributes

xcom_protocol_change_functorm_functor
 
Gcs_xcom_communication_protocol_changerm_protocol_changer
 
Gcs_tagged_lock::Tag const m_tag
 

Detailed Description

Notification used to finish a protocol change.

Constructor & Destructor Documentation

◆ Protocol_change_notification() [1/2]

Protocol_change_notification::Protocol_change_notification ( xcom_protocol_change_functor functor,
Gcs_xcom_communication_protocol_changer protocol_changer,
Gcs_tagged_lock::Tag const  tag 
)
explicit

Constructor for Protocol_change_notification.

Parameters
functorPointer to a function that contains that actual core of the execution.
protocol_changercommunication protocol change logic
tagtag reference to the lock

◆ ~Protocol_change_notification()

Protocol_change_notification::~Protocol_change_notification ( )
overridedefault

Destructor for Protocol_change_notification.

◆ Protocol_change_notification() [2/2]

Protocol_change_notification::Protocol_change_notification ( Protocol_change_notification const &  )
private

Member Function Documentation

◆ do_execute()

void Protocol_change_notification::do_execute ( )
overrideprivatevirtual

Task implemented by this notification.

Implements Parameterized_notification< false >.

◆ operator=()

Protocol_change_notification & Protocol_change_notification::operator= ( Protocol_change_notification const &  )
private

Member Data Documentation

◆ m_functor

xcom_protocol_change_functor* Protocol_change_notification::m_functor
private

◆ m_protocol_changer

Gcs_xcom_communication_protocol_changer* Protocol_change_notification::m_protocol_changer
private

◆ m_tag

Gcs_tagged_lock::Tag const Protocol_change_notification::m_tag
private

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