Package org.keycloak.storage
Class CacheableStorageProviderModel
java.lang.Object
org.keycloak.component.ComponentModel
org.keycloak.component.PrioritizedComponentModel
org.keycloak.storage.CacheableStorageProviderModel
- Direct Known Subclasses:
ClientScopeStorageProviderModel,ClientStorageProviderModel,GroupStorageProviderModel,RoleStorageProviderModel,UserStorageProviderModel
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.keycloak.component.ComponentModel
ComponentModel.MultiMapEntry -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.keycloak.component.PrioritizedComponentModel
comparator, PRIORITY -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic longdailyEvictionBoundary(int hour, int minute) static longdailyTimeout(int hour, int minute) longintintintlonglongbooleanvoidsetCacheInvalidBefore(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.PrioritizedComponentModel
getPriority, parsePriority, setPriorityMethods inherited from class org.keycloak.component.ComponentModel
contains, get, get, get, get, get, getConfig, getConfigProto, getId, getName, getNote, getParentId, getProviderId, getProviderType, getSubType, hasNote, put, put, put, put, removeNote, setConfig, setConfigProto, setId, setName, setNote, setParentId, setProviderId, setProviderType, setSubType
-
Field Details
-
CACHE_POLICY
- See Also:
-
MAX_LIFESPAN
- See Also:
-
EVICTION_HOUR
- See Also:
-
EVICTION_MINUTE
- See Also:
-
EVICTION_DAY
- See Also:
-
CACHE_INVALID_BEFORE
- See Also:
-
ENABLED
- See Also:
-
-
Constructor Details
-
CacheableStorageProviderModel
public CacheableStorageProviderModel() -
CacheableStorageProviderModel
-
-
Method Details
-
getCachePolicy
-
setCachePolicy
-
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
-
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)
-