Class BaseCacheInitializer

java.lang.Object
org.keycloak.models.sessions.infinispan.initializer.CacheInitializer
org.keycloak.models.sessions.infinispan.initializer.BaseCacheInitializer
Direct Known Subclasses:
InfinispanCacheInitializer

public abstract class BaseCacheInitializer extends CacheInitializer
Author:
Marek Posolda
  • Field Details

    • sessionFactory

      protected final KeycloakSessionFactory sessionFactory
    • workCache

      protected final org.infinispan.Cache<String,Serializable> workCache
    • sessionLoader

      protected final SessionLoader sessionLoader
    • sessionsPerSegment

      protected final int sessionsPerSegment
    • stateKey

      protected final String stateKey
  • Constructor Details

  • Method Details

    • isFinished

      protected boolean isFinished()
      Specified by:
      isFinished in class CacheInitializer
    • isCoordinator

      protected boolean isCoordinator()
      Specified by:
      isCoordinator in class CacheInitializer
    • getProgressIndicator

      protected int getProgressIndicator()
      Description copied from class: CacheInitializer
      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.
      Specified by:
      getProgressIndicator in class CacheInitializer
      Returns:
      See Also:
      • #stalledTimeoutInSeconds
    • getStateFromCache

      protected InitializerState getStateFromCache()
    • saveStateToCache

      protected void saveStateToCache(InitializerState state)
    • getWorkCache

      public org.infinispan.Cache<String,Serializable> getWorkCache()