Package org.ojalgo.type
Class TypeCache<T>
- java.lang.Object
-
- org.ojalgo.type.TypeCache<T>
-
public abstract class TypeCache<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private T
myCachedObject
private boolean
myDirty
private static java.util.Timer
TIMER
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeCache()
TypeCache(long aPurgeIntervalMeassure, CalendarDateUnit aPurgeIntervalUnit)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
flushCache()
T
getCachedObject()
boolean
isCacheSet()
boolean
isDirty()
void
makeDirty()
protected abstract T
recreateCache()
-
-
-
Field Detail
-
TIMER
private static final java.util.Timer TIMER
-
myCachedObject
private transient volatile T myCachedObject
-
myDirty
private volatile boolean myDirty
-
-
Constructor Detail
-
TypeCache
public TypeCache(long aPurgeIntervalMeassure, CalendarDateUnit aPurgeIntervalUnit)
-
TypeCache
private TypeCache()
-
-