MySQL 8.0.37
Source Code Documentation
Sender_context_guard Class Reference

Sentry class that guards the Binlog_sender context and, at destruction, will prepare it for the next event to be processed. More...

Public Member Functions

 Sender_context_guard (Binlog_sender &target, binary_log::Log_event_type event_type)
 Class constructor that simply stores, internally, the reference for the Binlog_sender to be guarded and the values to be set upon destruction. More...
 
virtual ~Sender_context_guard ()
 Class destructor that will set the proper context of the guarded Binlog_sender object. More...
 

Private Attributes

Binlog_senderm_target
 The object to be guarded. More...
 
binary_log::Log_event_type m_event_type
 The currently being processed event type. More...
 

Detailed Description

Sentry class that guards the Binlog_sender context and, at destruction, will prepare it for the next event to be processed.

Constructor & Destructor Documentation

◆ Sender_context_guard()

Sender_context_guard::Sender_context_guard ( Binlog_sender target,
binary_log::Log_event_type  event_type 
)
inline

Class constructor that simply stores, internally, the reference for the Binlog_sender to be guarded and the values to be set upon destruction.

Parameters
targetThe Binlog_sender object to be guarded.
event_typeThe currently processed event type, to be used for context of the next event processing round.

◆ ~Sender_context_guard()

virtual Sender_context_guard::~Sender_context_guard ( )
inlinevirtual

Class destructor that will set the proper context of the guarded Binlog_sender object.

Member Data Documentation

◆ m_event_type

binary_log::Log_event_type Sender_context_guard::m_event_type
private

The currently being processed event type.

◆ m_target

Binlog_sender& Sender_context_guard::m_target
private

The object to be guarded.


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