V
- the type.public final class ResetableCacheLongTable<V> extends CacheLongTable<V>
MemoryHandler.Cost
cost, count, data, description, estEmptyCount, INITIAL_CAPACITY, memoryMangerThreshold, PROPERTY_ENABLE_POINTER_CHECK, rwLock, unallocated
Constructor and Description |
---|
ResetableCacheLongTable(java.lang.String description,
MemoryHandler.Cost cost)
Creates a new Cache Long table.
|
Modifier and Type | Method and Description |
---|---|
protected InterfaceEntry[] |
createArray(int size)
create a new array
|
ResetableCacheEntryLong |
getCacheEntry(long key)
Retrieve the entry for the key.
|
int |
getReadCheck() |
void |
incrementReadCheck()
update the read check
|
protected CacheEntryLong |
makeCacheEntryLong(long key,
int hashCode,
java.lang.Object referent,
InterfaceEntry next)
make a cache entry for objects with a long for a key.
|
containsKey, find, get, getKeyArray, isLocked, lock, place, placeIfAbsent, put, release, remove, unlock
checkRegister, clear, compact, containsValue, freeMemory, getAverageSize, getCost, getDescription, getEstimatedSize, getHardLinkCount, getLastAccessed, isEmpty, panicFreeMemory, queuedFreeMemory, rehash, removeElement, setAverageSize, setMayReleaseReferences, setThreshold, size, stats, tidyUp, tidyUpRequired, toString, touch
public ResetableCacheLongTable(@Nonnull java.lang.String description, @Nonnull MemoryHandler.Cost cost)
description
- The description of this cache table.cost
- The relative cost.@CheckReturnValue @Nullable public ResetableCacheEntryLong getCacheEntry(long key)
key
- The key@CheckReturnValue @Nonnull protected CacheEntryLong makeCacheEntryLong(long key, int hashCode, java.lang.Object referent, InterfaceEntry next)
makeCacheEntryLong
in class CacheLongTable<V>
key
- the keyhashCode
- the hash numberreferent
- the object that we want to cachenext
- the next entry@CheckReturnValue @Nonnull protected InterfaceEntry[] createArray(int size)
createArray
in class CacheLongTable<V>
size
- the new size of the array@CheckReturnValue public int getReadCheck()
public void incrementReadCheck()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.