Class MetadataRemoveAcceptedMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.binary.MetadataRemoveAcceptedMessage
-
- All Implemented Interfaces:
Serializable,DiscoveryCustomMessage
public class MetadataRemoveAcceptedMessage extends Object implements DiscoveryCustomMessage
Acknowledge message forMetadataRemoveProposedMessage: see its javadoc for detailed description of protocol. As discovery messaging doesn't guarantee that message makes only one pass across the cluster MetadataRemoveAcceptedMessage enables to mark it as duplicated so other nodes won't process it but skip.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DiscoveryCustomMessageackMessage()Called when custom message has been handled by all nodes.@Nullable DiscoCachecreateDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)Creates new discovery cache if message caused topology version change.booleanduplicated()voidduplicated(boolean duplicated)IgniteUuidid()booleanisMutable()StringtoString()inttypeId()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage
stopProcess
-
-
-
-
Method Detail
-
id
public IgniteUuid id()
- Specified by:
idin interfaceDiscoveryCustomMessage- Returns:
- Unique custom message ID.
-
ackMessage
@Nullable public @Nullable DiscoveryCustomMessage ackMessage()
Called when custom message has been handled by all nodes.- Specified by:
ackMessagein interfaceDiscoveryCustomMessage- Returns:
- Ack message or
nullif ack is not required.
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceDiscoveryCustomMessage- Returns:
Trueif message can be modified during listener notification. Changes will be sent to next nodes.
-
createDiscoCache
@Nullable public @Nullable DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.- Specified by:
createDiscoCachein interfaceDiscoveryCustomMessage- Parameters:
mgr- Discovery manager.topVer- New topology version.discoCache- Current discovery cache.- Returns:
- Reused discovery cache.
-
typeId
public int typeId()
-
duplicated
public boolean duplicated()
-
duplicated
public void duplicated(boolean duplicated)
- Parameters:
duplicated- duplicated flag.
-
-