Package com.mchange.util.impl
Class SoftReferenceObjectCache
- java.lang.Object
-
- com.mchange.util.impl.SoftReferenceObjectCache
-
- All Implemented Interfaces:
ObjectCache
public abstract class SoftReferenceObjectCache extends java.lang.Object implements ObjectCache
-
-
Constructor Summary
Constructors Constructor Description SoftReferenceObjectCache()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Object
createFromKey(java.lang.Object key)
java.lang.Object
find(java.lang.Object key)
protected boolean
isDirty(java.lang.Object key, java.lang.Object cached)
-
-
-
Method Detail
-
find
public java.lang.Object find(java.lang.Object key) throws java.lang.Exception
- Specified by:
find
in interfaceObjectCache
- Throws:
java.lang.Exception
-
isDirty
protected boolean isDirty(java.lang.Object key, java.lang.Object cached)
-
createFromKey
protected abstract java.lang.Object createFromKey(java.lang.Object key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-