MySQL 9.1.0
Source Code Documentation
|
Abstract class that provides interface for listener on cluster status changes. More...
#include <metadata_cache.h>
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 | |
ClusterStateListenerInterface & | operator= (const ClusterStateListenerInterface &)=delete |
virtual | ~ClusterStateListenerInterface () |
Abstract class that provides interface for listener on cluster status changes.
When state of cluster is changed, notify function is called.
|
default |
|
explicitdelete |
|
virtualdefault |
|
pure virtual |
Callback function that is called when state of cluster is changed.
cluster_topology | current cluster topology |
md_servers_reachable | true if metadata changed, false if metadata unavailable |
view_id | current metadata view_id in case of ReplicaSet cluster |
Implemented in MetadataServersStateListener, and DestMetadataCacheGroup.
|
delete |