MySQL 8.0.39
Source Code Documentation
notification.h File Reference
#include <string>

Go to the source code of this file.

Classes

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

Functions

bool notify_and_reset_ctx (Notification_context &ctx)
 This function SHALL trigger the notifications based on the notification context provided as an argument. More...
 

Function Documentation

◆ notify_and_reset_ctx()

bool notify_and_reset_ctx ( Notification_context ctx)

This function SHALL trigger the notifications based on the notification context provided as an argument.

Different notifications SHALL be emitted depending on what is flagged.

It calls out into those services that have registered themselves in the server service registry as listeners for the notifications such as view changes, or member state changes.

If an error is returned it can be that part of the notifications have succeeded and part have not.

Note
The assumption is that this function is fast, i.e., consumers SHALL implement a notification handling system that will release the caller thread immediately after they receive the notification.
Parameters
ctxThe notification context.