public interface LifecycleListener
Modifier and Type | Method and Description |
---|---|
void |
joinedCluster()
Invoked when this node has joined the cluster, but before it has gone online.
|
void |
offline()
Invoked when this node is taken offline, i.e.
|
void |
online(boolean master)
Invoked when this node is online, i.e.
|
void |
switchToMaster()
Invoked when this (formerly) slave node has now become the master.
|
void joinedCluster()
void online(boolean master)
master
- true
if this node is a master, false
if it's a slave.void offline()
void switchToMaster()