public abstract class WalStateAbstractMessage extends Object implements DiscoveryCustomMessage
| Modifier | Constructor and Description |
|---|---|
protected |
WalStateAbstractMessage(UUID opId,
int grpId,
IgniteUuid grpDepId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DiscoveryCustomMessage |
ackMessage()
Called when custom message has been handled by all nodes.
|
DiscoCache |
createDiscoCache(GridDiscoveryManager mgr,
AffinityTopologyVersion topVer,
DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.
|
WalStateProposeMessage |
exchangeMessage()
Get exchange message.
|
void |
exchangeMessage(WalStateProposeMessage exchangeMsg)
Set message that will be processed through exchange thread later on.
|
IgniteUuid |
groupDeploymentId() |
int |
groupId() |
IgniteUuid |
id() |
boolean |
isMutable() |
boolean |
needExchange() |
UUID |
operationId() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstopProcessprotected WalStateAbstractMessage(UUID opId, int grpId, IgniteUuid grpDepId)
opId - Unique operation ID.grpId - Group ID.grpDepId - Group deployment ID.public UUID operationId()
public int groupId()
public IgniteUuid groupDeploymentId()
public boolean needExchange()
True if exchange is needed.@Nullable public WalStateProposeMessage exchangeMessage()
null if no processing is required.public void exchangeMessage(WalStateProposeMessage exchangeMsg)
exchangeMsg - Message.public IgniteUuid id()
id in interface DiscoveryCustomMessage@Nullable public DiscoveryCustomMessage ackMessage()
ackMessage in interface DiscoveryCustomMessagenull if ack is not required.public boolean isMutable()
isMutable in interface DiscoveryCustomMessageTrue if message can be modified during listener notification. Changes will be sent to next nodes.public DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
createDiscoCache in interface DiscoveryCustomMessagemgr - Discovery manager.topVer - New topology version.discoCache - Current discovery cache.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019