public abstract class ClusterListenerAdapter<T> extends java.lang.Object implements ClusterListener<T>
| Constructor and Description |
|---|
ClusterListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getState()
Get state of this cluster node to send it to other nodes.
|
void |
setState(byte[] state)
Set state of this cluster node receiving it from other active node.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreceivepublic byte[] getState()
ClusterListenerThis method is invoked by clustering implementation when a new node joins the cluster and wants to receive the state from this active node.
getState in interface ClusterListener<T>public void setState(byte[] state)
ClusterListenerThis method is invoked by clustering implementation once when this node joins the cluster.
setState in interface ClusterListener<T>state - byte array containing the state