Tabnine Logo
CacheInitializer.initCache
Code IndexAdd Tabnine to your IDE (free)

How to use
initCache
method
in
org.keycloak.models.sessions.infinispan.initializer.CacheInitializer

Best Java code snippets using org.keycloak.models.sessions.infinispan.initializer.CacheInitializer.initCache (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-model-infinispan

@Override
public void initCache() {
  delegate.initCache();
}
origin: org.keycloak/keycloak-model-infinispan

@Override
public void run(KeycloakSession session) {
  InfinispanConnectionProvider connections = session.getProvider(InfinispanConnectionProvider.class);
  Cache<String, Serializable> workCache = connections.getCache(InfinispanConnectionProvider.WORK_CACHE_NAME);
  InfinispanCacheInitializer ispnInitializer = new InfinispanCacheInitializer(sessionFactory, workCache,
      new OfflinePersistentUserSessionLoader(sessionsPerSegment), "offlineUserSessions", sessionsPerSegment, maxErrors);
  // DB-lock to ensure that persistent sessions are loaded from DB just on one DC. The other DCs will load them from remote cache.
  CacheInitializer initializer = new DBLockBasedCacheInitializer(session, ispnInitializer);
  initializer.initCache();
  initializer.loadSessions();
  // Initialize persister for periodically doing bulk DB updates of lastSessionRefresh timestamps of refreshed sessions
  persisterLastSessionRefreshStore = new PersisterLastSessionRefreshStoreFactory().createAndInit(session, true);
}
org.keycloak.models.sessions.infinispan.initializerCacheInitializerinitCache

Popular methods of CacheInitializer

  • isCoordinator
  • isFinished
  • loadSessions
  • startLoading
    Just coordinator will run this

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BoxLayout (javax.swing)
  • JFrame (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now