public class GridDhtLocalPartition extends GridCacheConcurrentMapImpl implements Comparable<GridDhtLocalPartition>, GridReservable
GridCacheConcurrentMap.CacheMapHolder| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DELETE_QUEUE_SIZE
Maximum size for delete queue.
|
entries, entrySet, getEntry, putEntryIfObsoleteOrAbsent, putEntryIfObsoleteOrAbsent, removeEntrypublic static final int MAX_DELETE_QUEUE_SIZE
public int internalSize()
internalSize in interface GridCacheConcurrentMapprotected GridCacheConcurrentMap.CacheMapHolder entriesMap(GridCacheContext cctx)
entriesMap in class GridCacheConcurrentMapImplcctx - Cache context.@Nullable protected GridCacheConcurrentMap.CacheMapHolder entriesMapIfExists(Integer cacheId)
entriesMapIfExists in class GridCacheConcurrentMapImplcacheId - Cache ID.public IgniteCacheOffheapManager.CacheDataStore dataStore()
public boolean addReservation(GridDhtPartitionsReservation r)
r - Reservation.false If such reservation already added.public void removeReservation(GridDhtPartitionsReservation r)
r - Reservation.public int id()
public GridDhtPartitionState state()
public boolean shouldBeRenting()
True if partition is marked for transfer to renting state.public int reservations()
public boolean isEmpty()
True if partition is empty.public boolean valid()
public void cleanupRemoveQueue()
public void onDeferredDelete(int cacheId,
KeyCacheObject key,
GridCacheVersion ver)
cacheId - cacheId Cache ID.key - Removed key.ver - Removed version.public void lock()
public void unlock()
public boolean reserve()
reserve in interface GridReservablereserve in class GridCacheConcurrentMapImplTrue if reserved.public void release()
release in interface GridReservablerelease in class GridCacheConcurrentMapImplprotected void release(int sizeChange,
GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
release in class GridCacheConcurrentMapImplsizeChange - Size delta.hld - Map holder.e - Map entry.public void restoreState(GridDhtPartitionState stateToRestore)
stateToRestore - State to restore.public boolean reload()
True if partition should be re-created after it is cleared.public void reload(boolean value)
value - reload flag value.public IgniteInternalFuture<?> rent(boolean updateSeq)
updateSeq - Update sequence.public void tryEvictAsync(boolean updateSeq)
updateSeq - Update sequence.public void tryEvict()
throws NodeStoppingException
NodeStoppingException - If node is stopping.public boolean primary(AffinityTopologyVersion topVer)
topVer - Topology version.True if local node is primary for this partition.public boolean backup(AffinityTopologyVersion topVer)
topVer - Topology version.True if local node is backup for this partition.public long updateCounter()
public Long initialUpdateCounter()
public void updateCounter(long val)
val - Update index value.public void initialUpdateCounter(long val)
val - Initial update index value.public void clearAll()
throws NodeStoppingException
NodeStoppingException - If node stopping.public int compareTo(@NotNull
GridDhtLocalPartition part)
compareTo in interface Comparable<GridDhtLocalPartition>public int publicSize(int cacheId)
publicSize in interface GridCacheConcurrentMapcacheId - Cache ID.public void incrementPublicSize(@Nullable
GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
incrementPublicSize in interface GridCacheConcurrentMaphld - Cache map (passed as optimization to avoid cache map lookup for shared groups).e - Entry that caused public size change.public void decrementPublicSize(@Nullable
GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
decrementPublicSize in interface GridCacheConcurrentMaphld - Cache map (passed as optimization to avoid cache map lookup for shared groups).e - Entry that caused public size change.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018