Class CacheableStorageProviderModel

Direct Known Subclasses:
ClientScopeStorageProviderModel, ClientStorageProviderModel, GroupStorageProviderModel, RoleStorageProviderModel, UserStorageProviderModel

public class CacheableStorageProviderModel extends PrioritizedComponentModel
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

    • CacheableStorageProviderModel

      public CacheableStorageProviderModel()
    • CacheableStorageProviderModel

      public CacheableStorageProviderModel(ComponentModel copy)
  • Method Details

    • getCachePolicy

    • setCachePolicy

      public void setCachePolicy(CacheableStorageProviderModel.CachePolicy cachePolicy)
    • getMaxLifespan

      public long getMaxLifespan()
    • setMaxLifespan

      public void setMaxLifespan(long maxLifespan)
    • getEvictionHour

      public int getEvictionHour()
    • setEvictionHour

      public void setEvictionHour(int evictionHour)
    • getEvictionMinute

      public int getEvictionMinute()
    • setEvictionMinute

      public void setEvictionMinute(int evictionMinute)
    • getEvictionDay

      public int getEvictionDay()
    • setEvictionDay

      public void setEvictionDay(int evictionDay)
    • getCacheInvalidBefore

      public long getCacheInvalidBefore()
    • setCacheInvalidBefore

      public void setCacheInvalidBefore(long cacheInvalidBefore)
    • setEnabled

      public void setEnabled(boolean flag)
    • isEnabled

      public boolean isEnabled()
    • getLifespan

      public long getLifespan()
    • shouldInvalidate

      public boolean shouldInvalidate(CachedObject cached)
    • dailyTimeout

      public static long dailyTimeout(int hour, int minute)
    • dailyEvictionBoundary

      public static long dailyEvictionBoundary(int hour, int minute)
    • weeklyTimeout

      public static long weeklyTimeout(int day, int hour, int minute)