org.siebengeisslein.util
Class AbstractCache<Key,Result>

java.lang.Object
  extended by org.siebengeisslein.util.AbstractCache<Key,Result>

public abstract class AbstractCache<Key,Result>
extends java.lang.Object


Nested Class Summary
 class AbstractCache.AbstractEntry<ResultType>
           
 
Constructor Summary
AbstractCache()
           
 
Method Summary
protected  void add(Key key, AbstractCache.AbstractEntry value)
           
protected abstract  void assertValid(Key loid)
           
protected  void cleanUpQueue()
           
protected  AbstractCache.AbstractEntry get(Key loid)
           
 Result getEntry(Key key)
           
protected  AbstractCache.AbstractEntry getFromCache(Key loid)
           
protected  java.lang.ref.ReferenceQueue getQueue()
           
protected abstract  AbstractCache.AbstractEntry loadValue(Key key)
           
protected  void remove(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCache

public AbstractCache()
Method Detail

getQueue

protected java.lang.ref.ReferenceQueue getQueue()

remove

protected void remove(Key key)

cleanUpQueue

protected void cleanUpQueue()

getFromCache

protected AbstractCache.AbstractEntry getFromCache(Key loid)

getEntry

public Result getEntry(Key key)
                throws java.io.IOException,
                       UnknownOIDException
Throws:
java.io.IOException
UnknownOIDException

get

protected AbstractCache.AbstractEntry get(Key loid)
                                   throws java.io.IOException,
                                          UnknownOIDException
Throws:
java.io.IOException
UnknownOIDException

add

protected void add(Key key,
                   AbstractCache.AbstractEntry value)

assertValid

protected abstract void assertValid(Key loid)

loadValue

protected abstract AbstractCache.AbstractEntry loadValue(Key key)
                                                  throws UnknownOIDException,
                                                         java.io.IOException
Throws:
UnknownOIDException
java.io.IOException