public final class PrimaryNodeLifecycleNotificationListener extends Object implements ClusterNodeNotificationListener
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
PrimaryNodeLifecycleNotificationListener(Startable startMeOnPrimaryNodeNotification,
NotificationListenerRegistry notificationListenerRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
onNotification(ClusterNodeNotification notification)
Handles the
fired Notification . |
void |
register() |
void |
unregister() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBlocking
public PrimaryNodeLifecycleNotificationListener(Startable startMeOnPrimaryNodeNotification, NotificationListenerRegistry notificationListenerRegistry)
public void register()
public void onNotification(ClusterNodeNotification notification)
NotificationListener
fired
Notification
.onNotification
in interface NotificationListener<ClusterNodeNotification>
notification
- the Notification
to handle.public void unregister()
Copyright © 2018. All rights reserved.