protected class ExecutionsImpl.CancelExecutionClusterListener extends java.lang.Object implements ClusterListener<ExecutionsImpl.CancelExecutionMessage>
Modifier | Constructor and Description |
---|---|
protected |
CancelExecutionClusterListener() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getState()
Get state of this cluster node to send it to other nodes.
|
void |
receive(ExecutionsImpl.CancelExecutionMessage message)
Receive a message from other cluster nodes.
|
void |
setState(byte[] state)
Set state of this cluster node receiving it from other active node.
|
public void receive(ExecutionsImpl.CancelExecutionMessage message)
ClusterListener
receive
in interface ClusterListener<ExecutionsImpl.CancelExecutionMessage>
message
- message instancepublic byte[] getState()
ClusterListener
This 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<ExecutionsImpl.CancelExecutionMessage>
public void setState(byte[] state)
ClusterListener
This method is invoked by clustering implementation once when this node joins the cluster.
setState
in interface ClusterListener<ExecutionsImpl.CancelExecutionMessage>
state
- byte array containing the state