org.hypergraphdb.cache
Class ColdAtoms

java.lang.Object
  extended by 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

Field Summary
static int DEFAULT_BUCKET_SIZE
           
 
Constructor Summary
ColdAtoms()
           
ColdAtoms(int bucket_size)
           
 
Method Summary
 void add(java.lang.Object atom)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUCKET_SIZE

public static int DEFAULT_BUCKET_SIZE
Constructor Detail

ColdAtoms

public ColdAtoms()

ColdAtoms

public ColdAtoms(int bucket_size)
Parameters:
capacity -
bucket_size -
Method Detail

add

public void add(java.lang.Object atom)