SetClusterStateReloadCallback sets the callback function that will be called when a SMIGRATED notification is received. This allows node clients to notify their parent ClusterClient to reload cluster state.
(callback ClusterStateReloadCallback)
| 401 | // SetClusterStateReloadCallback sets the callback function that will be called when a SMIGRATED notification is received. |
| 402 | // This allows node clients to notify their parent ClusterClient to reload cluster state. |
| 403 | func (hm *Manager) SetClusterStateReloadCallback(callback ClusterStateReloadCallback) { |
| 404 | hm.clusterStateReloadCallback = callback |
| 405 | } |
| 406 | |
| 407 | // TriggerClusterStateReload calls the cluster state reload callback if it's set. |
| 408 | // This is called when a SMIGRATED notification is received. |
no outgoing calls