public class MetaDataGenerator extends Object
This metadata is used by RepairingHandler
and RepairingTask
to act against possible invalidation-miss and partition-loss.
One instance per service is created. Used on member side.
Constructor and Description |
---|
MetaDataGenerator(int partitionCount) |
Modifier and Type | Method and Description |
---|---|
long |
currentSequence(String name,
int partitionId) |
void |
destroyMetaDataFor(String dataStructureName) |
UUID |
getOrCreateUuid(int partitionId) |
ConcurrentMap<String,AtomicLongArray> |
getSequenceGenerators() |
UUID |
getUuidOrNull(int partitionId) |
long |
nextSequence(String name,
int partitionId) |
void |
regenerateUuid(int partitionId) |
void |
removeUuidAndSequence(int partitionId) |
void |
resetSequence(String name,
int partitionId) |
void |
setCurrentSequence(String name,
int partitionId,
long sequence) |
void |
setUuid(int partitionId,
UUID uuid) |
public long currentSequence(String name, int partitionId)
public long nextSequence(String name, int partitionId)
public void setCurrentSequence(String name, int partitionId, long sequence)
public UUID getOrCreateUuid(int partitionId)
public UUID getUuidOrNull(int partitionId)
public void setUuid(int partitionId, UUID uuid)
public void removeUuidAndSequence(int partitionId)
public void destroyMetaDataFor(String dataStructureName)
public void regenerateUuid(int partitionId)
public void resetSequence(String name, int partitionId)
public ConcurrentMap<String,AtomicLongArray> getSequenceGenerators()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.