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 classes/interfaces inherited from class org.keycloak.component.ComponentModel
ComponentModel.MultiMapEntry
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.keycloak.component.PrioritizedComponentModel
comparator, PRIORITY
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic long
dailyEvictionBoundary
(int hour, int minute) static long
dailyTimeout
(int hour, int minute) long
int
int
int
long
long
boolean
void
setCacheInvalidBefore
(long cacheInvalidBefore) void
setCachePolicy
(CacheableStorageProviderModel.CachePolicy cachePolicy) void
setEnabled
(boolean flag) void
setEvictionDay
(int evictionDay) void
setEvictionHour
(int evictionHour) void
setEvictionMinute
(int evictionMinute) void
setMaxLifespan
(long maxLifespan) boolean
shouldInvalidate
(CachedObject cached) static long
weeklyTimeout
(int day, int hour, int minute) Methods inherited from class org.keycloak.component.PrioritizedComponentModel
getPriority, parsePriority, setPriority
Methods 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)
-