MySQL 8.0.39
Source Code Documentation
|
Abstract class that provides interface for adding and removing observers on cluster status changes. More...
#include <metadata_cache.h>
Public Member Functions | |
virtual void | add_state_listener (ClusterStateListenerInterface *listener)=0 |
Register observer that is notified when there is a change in the cluster nodes setup/state discovered. More... | |
virtual void | remove_state_listener (ClusterStateListenerInterface *listener)=0 |
Unregister observer previously registered with add_state_listener() More... | |
ClusterStateNotifierInterface ()=default | |
ClusterStateNotifierInterface (const ClusterStateNotifierInterface &)=delete | |
ClusterStateNotifierInterface & | operator= (const ClusterStateNotifierInterface &)=delete |
virtual | ~ClusterStateNotifierInterface () |
Abstract class that provides interface for adding and removing observers on cluster status changes.
When state of cluster is changed, then ClusterStateListenerInterface::notify function is called for every registered observer.
|
default |
|
explicitdelete |
|
virtualdefault |
|
pure virtual |
Register observer that is notified when there is a change in the cluster nodes setup/state discovered.
listener | Observer object that is notified when cluster nodes state is changed. |
std::runtime_error | if metadata cache not initialized |
Implemented in metadata_cache::MetadataCacheAPI, metadata_cache::MetadataCacheAPIBase, and MetadataCache.
|
delete |
|
pure virtual |
Unregister observer previously registered with add_state_listener()
listener | Observer object that should be unregistered. |
std::runtime_error | if metadata cache not initialized |
Implemented in metadata_cache::MetadataCacheAPI, metadata_cache::MetadataCacheAPIBase, and MetadataCache.