MySQL 8.0.39
Source Code Documentation
metadata_cache::ClusterStateListenerInterface Class Referenceabstract

Abstract class that provides interface for listener on cluster status changes. More...

#include <metadata_cache.h>

Inheritance diagram for metadata_cache::ClusterStateListenerInterface:
[legend]

Public Member Functions

virtual void notify_instances_changed (const ClusterTopology &cluster_topology, const bool md_servers_reachable, const uint64_t view_id)=0
 Callback function that is called when state of cluster is changed. More...
 
 ClusterStateListenerInterface ()=default
 
 ClusterStateListenerInterface (const ClusterStateListenerInterface &)=delete
 
ClusterStateListenerInterfaceoperator= (const ClusterStateListenerInterface &)=delete
 
virtual ~ClusterStateListenerInterface ()
 

Detailed Description

Abstract class that provides interface for listener on cluster status changes.

When state of cluster is changed, notify function is called.

Constructor & Destructor Documentation

◆ ClusterStateListenerInterface() [1/2]

metadata_cache::ClusterStateListenerInterface::ClusterStateListenerInterface ( )
default

◆ ClusterStateListenerInterface() [2/2]

metadata_cache::ClusterStateListenerInterface::ClusterStateListenerInterface ( const ClusterStateListenerInterface )
explicitdelete

◆ ~ClusterStateListenerInterface()

metadata_cache::ClusterStateListenerInterface::~ClusterStateListenerInterface ( )
virtualdefault

Member Function Documentation

◆ notify_instances_changed()

virtual void metadata_cache::ClusterStateListenerInterface::notify_instances_changed ( const ClusterTopology cluster_topology,
const bool  md_servers_reachable,
const uint64_t  view_id 
)
pure virtual

Callback function that is called when state of cluster is changed.

Parameters
cluster_topologycurrent cluster topology
md_servers_reachabletrue if metadata changed, false if metadata unavailable
view_idcurrent metadata view_id in case of ReplicaSet cluster

Implemented in MetadataServersStateListener, and DestMetadataCacheGroup.

◆ operator=()

ClusterStateListenerInterface & metadata_cache::ClusterStateListenerInterface::operator= ( const ClusterStateListenerInterface )
delete

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