net.obsearch.cache
Class AbstractOBCache<K,O>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<K,O>
              extended by net.obsearch.cache.AbstractOBCache<K,O>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,O>
Direct Known Subclasses:
OBCacheByteArray, OBCacheLong

public abstract class AbstractOBCache<K,O>
extends LinkedHashMap<K,O>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
protected  int cacheSize
           
 
Constructor Summary
AbstractOBCache(int cacheSize)
           
 
Method Summary
abstract  void clearAll()
          Makes sure the cache is cleaned and each object is stored.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

cacheSize

protected int cacheSize
Constructor Detail

AbstractOBCache

public AbstractOBCache(int cacheSize)
Method Detail

clearAll

public abstract void clearAll()
                       throws OBException
Makes sure the cache is cleaned and each object is stored.

Throws:
OBException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.