V - the class.public class CacheLongTable<V> extends CacheTableTemplate<V>
MemoryHandler.Costcost, count, data, description, estEmptyCount, INITIAL_CAPACITY, memoryMangerThreshold, PROPERTY_ENABLE_POINTER_CHECK, rwLock, unallocated| Constructor and Description | 
|---|
CacheLongTable(java.lang.String description)
Creates a new Cache Long table. 
 | 
CacheLongTable(java.lang.String description,
              MemoryHandler.Cost cost)
Creates a new Cache Long table. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
containsKey(long key)
Returns true if this map contains a mapping for the specified
 key. 
 | 
protected InterfaceEntry[] | 
createArray(int size)
create a new array 
 | 
V | 
find(long key)
find the key and throw NotFound if known. 
 | 
V | 
get(long key)
Retrieve the data for the key. 
 | 
long[] | 
getKeyArray()
creates a array of the keys. 
 | 
boolean | 
isLocked(long key)
Returns true if the entry is locked into memory 
 | 
boolean | 
lock(long key)  | 
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. 
 | 
V | 
place(long key,
     V orginal,
     boolean keepFoundObject)
Returns the current object which is in this cache table. 
 | 
V | 
placeIfAbsent(long key,
             V value)
Returns the current object which is in this cache table. 
 | 
V | 
put(long key,
   V orginal)
Puts data into the cache table. 
 | 
boolean | 
release(long key)
Release the hard link to the object. 
 | 
V | 
remove(long key)
Removes the mapping for this key from this map if present. 
 | 
boolean | 
unlock(long key)  | 
checkRegister, clear, compact, containsValue, freeMemory, getAverageSize, getCost, getDescription, getEstimatedSize, getHardLinkCount, getLastAccessed, isEmpty, panicFreeMemory, queuedFreeMemory, rehash, removeElement, setAverageSize, setMayReleaseReferences, setThreshold, size, stats, tidyUp, tidyUpRequired, toString, touchpublic CacheLongTable(@Nonnull
                      java.lang.String description)
description - The description of this cache table.public CacheLongTable(@Nonnull
                      java.lang.String description,
                      @Nonnull
                      MemoryHandler.Cost cost)
description - The description of this cache table.cost - The relative cost.@CheckReturnValue @Nonnull public long[] getKeyArray()
@CheckReturnValue public boolean containsKey(long key)
key - key whose presence in this Map is to be tested.@CheckReturnValue public boolean isLocked(long key)
key - key whose presence in this Map is to be tested.public boolean lock(long key)
key - the key to lockpublic boolean unlock(long key)
key - the key to unlockpublic boolean release(long key)
key - key whose presence in this Map is to be tested.@Nullable public V remove(long key)
key - key whose mapping is to be removed from the map.@Nullable @CheckReturnValue public V get(long key)
key - The key@Nullable @CheckReturnValue public V find(long key) throws java.lang.Exception
key - the keyjava.lang.Exception - NotFoundException if the object is known not to exist.@Nullable public V put(long key, @Nullable V orginal)
orginal - The object to put into the cache table.key - The key of this object@CheckReturnValue @Nonnull protected CacheEntryLong makeCacheEntryLong(long key, int hashCode, java.lang.Object referent, InterfaceEntry next)
key - the keyhashCode - the hash numberreferent - the object that we want to cachenext - the next entry@Nonnull public V placeIfAbsent(long key, @Nonnull V value)
key - The key of the object to placevalue - The object to place.@Nullable public V place(long key, @Nullable V orginal, boolean keepFoundObject)
key - The key of the object to placeorginal - The object to place.keepFoundObject - Should we keep the original object if found ( are they the same)@Nonnull protected InterfaceEntry[] createArray(int size)
createArray in class CacheTableTemplate<V>size - the new size of the arraystSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.