Class CacheHolder<C extends Cache<C>>

java.lang.Object
ru.bgcrm.cache.CacheHolder<C>
Direct Known Subclasses:
OneCCacheHolder, ParamCacheHolder

public class CacheHolder<C extends Cache<C>> extends Object
  • Field Details

    • factory

      protected final C extends Cache<C> factory
    • cache

      protected volatile C extends Cache<C> cache
    • expiryTime

      protected volatile Date expiryTime
    • lastAccess

      protected volatile Date lastAccess
  • Constructor Details

    • CacheHolder

      public CacheHolder(C factory)
  • Method Details

    • getInstance

      public C getInstance()
    • flush

      public void flush(Connection con, boolean needSendEvent)
    • flush

      public void flush(Connection con)
    • getCache

      protected C getCache()
    • isEmptyOrExpired

      protected boolean isEmptyOrExpired()
    • getLastAccess

      public Date getLastAccess()