(notificationHook NotificationHook)
| 393 | } |
| 394 | |
| 395 | func (hm *Manager) AddNotificationHook(notificationHook NotificationHook) { |
| 396 | hm.hooksMu.Lock() |
| 397 | defer hm.hooksMu.Unlock() |
| 398 | hm.hooks = append(hm.hooks, notificationHook) |
| 399 | } |
| 400 | |
| 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. |
no outgoing calls