Package org.keycloak.storage
Class CacheableStorageProviderModel
- java.lang.Object
- 
- org.keycloak.component.ComponentModel
- 
- org.keycloak.component.PrioritizedComponentModel
- 
- org.keycloak.storage.CacheableStorageProviderModel
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- ClientScopeStorageProviderModel,- ClientStorageProviderModel,- GroupStorageProviderModel,- RoleStorageProviderModel,- UserStorageProviderModel
 
 public class CacheableStorageProviderModel extends PrioritizedComponentModel - Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCacheableStorageProviderModel.CachePolicy
 - 
Field SummaryFields Modifier and Type Field Description static StringCACHE_INVALID_BEFOREstatic StringCACHE_POLICYstatic StringENABLEDstatic StringEVICTION_DAYstatic StringEVICTION_HOURstatic StringEVICTION_MINUTEstatic StringMAX_LIFESPAN- 
Fields inherited from class org.keycloak.component.PrioritizedComponentModelcomparator, PRIORITY
 
- 
 - 
Constructor SummaryConstructors Constructor Description CacheableStorageProviderModel()CacheableStorageProviderModel(ComponentModel copy)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longdailyEvictionBoundary(int hour, int minute)static longdailyTimeout(int hour, int minute)longgetCacheInvalidBefore()CacheableStorageProviderModel.CachePolicygetCachePolicy()intgetEvictionDay()intgetEvictionHour()intgetEvictionMinute()longgetLifespan()longgetMaxLifespan()booleanisEnabled()voidsetCacheInvalidBefore(long cacheInvalidBefore)voidsetCachePolicy(CacheableStorageProviderModel.CachePolicy cachePolicy)voidsetEnabled(boolean flag)voidsetEvictionDay(int evictionDay)voidsetEvictionHour(int evictionHour)voidsetEvictionMinute(int evictionMinute)voidsetMaxLifespan(long maxLifespan)booleanshouldInvalidate(CachedObject cached)static longweeklyTimeout(int day, int hour, int minute)- 
Methods inherited from class org.keycloak.component.PrioritizedComponentModelgetPriority, parsePriority, setPriority
 - 
Methods inherited from class org.keycloak.component.ComponentModelcontains, get, get, get, get, get, getConfig, getId, getName, getNote, getParentId, getProviderId, getProviderType, getSubType, hasNote, put, put, put, put, removeNote, setConfig, setId, setName, setNote, setParentId, setProviderId, setProviderType, setSubType
 
- 
 
- 
- 
- 
Field Detail- 
CACHE_POLICYpublic static final String CACHE_POLICY - See Also:
- Constant Field Values
 
 - 
MAX_LIFESPANpublic static final String MAX_LIFESPAN - See Also:
- Constant Field Values
 
 - 
EVICTION_HOURpublic static final String EVICTION_HOUR - See Also:
- Constant Field Values
 
 - 
EVICTION_MINUTEpublic static final String EVICTION_MINUTE - See Also:
- Constant Field Values
 
 - 
EVICTION_DAYpublic static final String EVICTION_DAY - See Also:
- Constant Field Values
 
 - 
CACHE_INVALID_BEFOREpublic static final String CACHE_INVALID_BEFORE - See Also:
- Constant Field Values
 
 - 
ENABLEDpublic static final String ENABLED - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CacheableStorageProviderModelpublic CacheableStorageProviderModel() 
 - 
CacheableStorageProviderModelpublic CacheableStorageProviderModel(ComponentModel copy) 
 
- 
 - 
Method Detail- 
getCachePolicypublic CacheableStorageProviderModel.CachePolicy getCachePolicy() 
 - 
setCachePolicypublic void setCachePolicy(CacheableStorageProviderModel.CachePolicy cachePolicy) 
 - 
getMaxLifespanpublic long getMaxLifespan() 
 - 
setMaxLifespanpublic void setMaxLifespan(long maxLifespan) 
 - 
getEvictionHourpublic int getEvictionHour() 
 - 
setEvictionHourpublic void setEvictionHour(int evictionHour) 
 - 
getEvictionMinutepublic int getEvictionMinute() 
 - 
setEvictionMinutepublic void setEvictionMinute(int evictionMinute) 
 - 
getEvictionDaypublic int getEvictionDay() 
 - 
setEvictionDaypublic void setEvictionDay(int evictionDay) 
 - 
getCacheInvalidBeforepublic long getCacheInvalidBefore() 
 - 
setCacheInvalidBeforepublic void setCacheInvalidBefore(long cacheInvalidBefore) 
 - 
setEnabledpublic void setEnabled(boolean flag) 
 - 
isEnabledpublic boolean isEnabled() 
 - 
getLifespanpublic long getLifespan() 
 - 
shouldInvalidatepublic boolean shouldInvalidate(CachedObject cached) 
 - 
dailyTimeoutpublic static long dailyTimeout(int hour, int minute)
 - 
dailyEvictionBoundarypublic static long dailyEvictionBoundary(int hour, int minute)
 - 
weeklyTimeoutpublic static long weeklyTimeout(int day, int hour, int minute)
 
- 
 
-