Class InfinispanCacheInitializer
java.lang.Object
org.keycloak.models.sessions.infinispan.initializer.CacheInitializer
org.keycloak.models.sessions.infinispan.initializer.BaseCacheInitializer
org.keycloak.models.sessions.infinispan.initializer.InfinispanCacheInitializer
Startup initialization for reading persistent userSessions to be filled into infinispan/memory.
Implementation is pretty generic and doesn't contain any "userSession" specific stuff. All logic related to how sessions are loaded is in the SessionLoader implementation
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class org.keycloak.models.sessions.infinispan.initializer.BaseCacheInitializer
sessionFactory, sessionLoader, stateKey, workCache
-
Constructor Summary
ConstructorDescriptionInfinispanCacheInitializer
(KeycloakSessionFactory sessionFactory, org.infinispan.Cache<String, InitializerState> workCache, SessionLoader sessionLoader, String stateKeySuffix, int maxErrors, int stalledTimeoutInSeconds) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected void
Just coordinator will run thisprotected void
startLoadingImpl
(InitializerState state, SessionLoader.LoaderContext loaderCtx) Methods inherited from class org.keycloak.models.sessions.infinispan.initializer.BaseCacheInitializer
getProgressIndicator, getStateFromCache, isCoordinator, isFinished, saveStateToCache
Methods inherited from class org.keycloak.models.sessions.infinispan.initializer.CacheInitializer
loadSessions
-
Constructor Details
-
InfinispanCacheInitializer
public InfinispanCacheInitializer(KeycloakSessionFactory sessionFactory, org.infinispan.Cache<String, InitializerState> workCache, SessionLoader sessionLoader, String stateKeySuffix, int maxErrors, int stalledTimeoutInSeconds)
-
-
Method Details
-
startLoading
protected void startLoading()Description copied from class:CacheInitializer
Just coordinator will run this- Specified by:
startLoading
in classCacheInitializer
-
getStalledTimeoutInSeconds
protected int getStalledTimeoutInSeconds()- Specified by:
getStalledTimeoutInSeconds
in classCacheInitializer
-
startLoadingImpl
-