K
- key typeV
- value typepublic abstract class AbstractReplicatedRecordStore<K,V> extends AbstractBaseReplicatedRecordStore<K,V>
ReplicatedRecordStore
implementationseventService, isLoaded, name, nodeEngine, partitionId, partitionService, replicatedMapConfig, replicatedMapService, serializationService, storageRef
Constructor and Description |
---|
AbstractReplicatedRecordStore(String name,
ReplicatedMapService replicatedMapService,
int partitionId) |
cancelTtlEntry, clearInternal, destroy, equals, getName, getPartitionId, getRecords, getStats, getStorage, getStorageRef, getTtlEvictionScheduler, getVersion, hashCode, isLoaded, isStale, scheduleTtlEntry, setLoaded
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
marshall, unmarshall
public AbstractReplicatedRecordStore(String name, ReplicatedMapService replicatedMapService, int partitionId)
public void evict(Object key)
public Object putWithVersion(Object key, Object value, long ttl, TimeUnit timeUnit, boolean incrementHits, long version)
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public Set keySet(boolean lazy)
public Collection values(boolean lazy)
public Collection values(Comparator comparator)
public Set entrySet(boolean lazy)
public ReplicatedRecord getReplicatedRecord(Object key)
public boolean isEmpty()
public int size()
public void clear()
public void clearWithVersion(long version)
public void reset()
public Iterator recordIterator()
public void putRecords(Collection<RecordMigrationInfo> records, long version)
public boolean merge(SplitBrainMergeTypes.ReplicatedMapMergeTypes mergingEntry, SplitBrainMergePolicy<Object,SplitBrainMergeTypes.ReplicatedMapMergeTypes> mergePolicy)
ReplicatedRecordStore
SplitBrainMergeTypes.ReplicatedMapMergeTypes
via the given SplitBrainMergePolicy
.mergingEntry
- the SplitBrainMergeTypes.ReplicatedMapMergeTypes
instance to mergemergePolicy
- the SplitBrainMergePolicy
instance to applytrue
if merge is applied, otherwise false
public boolean merge(Object key, ReplicatedMapEntryView mergingEntry, ReplicatedMapMergePolicy mergePolicy)
ReplicatedRecordStore
ReplicatedMapEntryView
via the given ReplicatedMapMergePolicy
.mergingEntry
- the ReplicatedMapEntryView
instance to mergemergePolicy
- the ReplicatedMapMergePolicy
instance to applytrue
if merge is applied, otherwise false
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.