MySQL 8.4.2
Source Code Documentation
|
#include <mysql/components/services/group_member_status_listener.h>
#include <mysql/components/services/group_membership_listener.h>
#include <mysql/components/services/log_builtins.h>
#include "plugin/group_replication/include/plugin.h"
#include "plugin/group_replication/include/services/notification/notification.h"
#include <list>
Typedefs | |
typedef int(* | svc_notify_func) (Notification_context &, my_h_service) |
Enumerations | |
enum | SvcTypes { kGroupMembership = 0 , kGroupMemberStatus } |
Functions | |
static int | notify_group_membership (Notification_context &ctx, my_h_service svc) |
static int | notify_group_member_status (Notification_context &ctx, my_h_service svc) |
static bool | notify (SvcTypes svc_type, Notification_context &ctx) |
Auxiliary function to engage the service registry to notify a set of listeners. More... | |
bool | notify_and_reset_ctx (Notification_context &ctx) |
This function SHALL trigger the notifications based on the notification context provided as an argument. More... | |
typedef int(* svc_notify_func) (Notification_context &, my_h_service) |
enum SvcTypes |
|
static |
Auxiliary function to engage the service registry to notify a set of listeners.
svc_type | The service name. |
ctx | The events context |
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.
ctx | The notification context. |
|
static |
|
static |