org.hypergraphdb.cache
Class ColdAtoms
java.lang.Object
org.hypergraphdb.cache.ColdAtoms
public class ColdAtoms
- extends java.lang.Object
The purpose of this class is just to keep references to atoms in the WeakRefAtomCache
for a little while so that they don't get evicted as soon as the garbage collector
collects them because they are not referred to anymore in the program.
The term "cold" means "not really frozen" :)
- Author:
- Boris
|
Method Summary |
void |
add(java.lang.Object atom)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUCKET_SIZE
public static int DEFAULT_BUCKET_SIZE
ColdAtoms
public ColdAtoms()
ColdAtoms
public ColdAtoms(int bucket_size)
- Parameters:
capacity - bucket_size -
add
public void add(java.lang.Object atom)