Class TypeCache<T>


  • public abstract class TypeCache<T>
    extends java.lang.Object
    • 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()
    • Method Detail

      • flushCache

        public final void flushCache()
      • getCachedObject

        public final T getCachedObject()
      • isCacheSet

        public final boolean isCacheSet()
      • isDirty

        public final boolean isDirty()
      • makeDirty

        public final void makeDirty()
      • recreateCache

        protected abstract T recreateCache()