public final class MetadataUpdateProposedMessage extends Object implements DiscoveryCustomMessage
MetadataUpdateAcceptedMessage messages make a basis for
discovery-based protocol for exchanging metadata describing objects in binary format stored in Ignite caches.
All interactions with binary metadata are performed through BinaryMetadataHandler
interface implemented in CacheObjectBinaryProcessorImpl processor.
Protocol works as follows:
ack is sent.
Ack has the same accepted version as pending version
of initial MetadataUpdateProposedMessage message.
MetadataUpdateAcceptedMessage arrives with accepted version
equals to pending version of this metadata to the moment when is was initially read by the thread.| Constructor and Description |
|---|
MetadataUpdateProposedMessage(BinaryMetadata metadata,
UUID origNodeId) |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryCustomMessage |
ackMessage()
Called when custom message has been handled by all nodes.
|
IgniteUuid |
id() |
boolean |
isMutable() |
BinaryMetadata |
metadata() |
void |
metadata(BinaryMetadata metadata) |
String |
toString() |
int |
typeId() |
public MetadataUpdateProposedMessage(BinaryMetadata metadata, UUID origNodeId)
metadata - BinaryMetadata requested to be updated.origNodeId - ID of node requested update.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 send to next nodes.public BinaryMetadata metadata()
public void metadata(BinaryMetadata metadata)
metadata - Metadata.public int typeId()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017