Class CacheInitializer
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.initializer.CacheInitializer
-
- Direct Known Subclasses:
BaseCacheInitializer
,DBLockBasedCacheInitializer
public abstract class CacheInitializer extends Object
- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description CacheInitializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract int
getProgressIndicator()
Returns an integer which captures current progress.protected abstract int
getStalledTimeoutInSeconds()
void
initCache()
protected abstract boolean
isCoordinator()
protected abstract boolean
isFinished()
void
loadSessions()
protected abstract void
startLoading()
Just coordinator will run this
-
-
-
Method Detail
-
initCache
public void initCache()
-
loadSessions
public void loadSessions()
-
isFinished
protected abstract boolean isFinished()
-
isCoordinator
protected abstract boolean isCoordinator()
-
getProgressIndicator
protected abstract int getProgressIndicator()
Returns an integer which captures current progress. If there is a progress in loading, this indicator must be different most of the time so that it does not hit 30-seconds limit.- Returns:
- See Also:
#stalledTimeoutInSeconds
-
startLoading
protected abstract void startLoading()
Just coordinator will run this
-
getStalledTimeoutInSeconds
protected abstract int getStalledTimeoutInSeconds()
-
-