Tabnine Logo
OfflineUserSessionLoader.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.keycloak.models.sessions.infinispan.initializer.OfflineUserSessionLoader
constructor

Best Java code snippets using org.keycloak.models.sessions.infinispan.initializer.OfflineUserSessionLoader.<init> (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-model-sessions-infinispan

@Override
public void loadPersistentSessions(final KeycloakSessionFactory sessionFactory, final int maxErrors, final int sessionsPerSegment) {
  log.debug("Start pre-loading userSessions and clientSessions from persistent storage");
  if (compatMode) {
    SimpleUserSessionInitializer initializer = new SimpleUserSessionInitializer(sessionFactory, new OfflineUserSessionLoader(), sessionsPerSegment);
    initializer.loadPersistentSessions();
  } else {
    KeycloakModelUtils.runJobInTransaction(sessionFactory, new KeycloakSessionTask() {
      @Override
      public void run(KeycloakSession session) {
        InfinispanConnectionProvider connections = session.getProvider(InfinispanConnectionProvider.class);
        Cache<String, SessionEntity> cache = connections.getCache(InfinispanConnectionProvider.OFFLINE_SESSION_CACHE_NAME);
        InfinispanUserSessionInitializer initializer = new InfinispanUserSessionInitializer(sessionFactory, cache, new OfflineUserSessionLoader(), maxErrors, sessionsPerSegment, "offlineUserSessions");
        initializer.initCache();
        initializer.loadPersistentSessions();
      }
    });
  }
  log.debug("Pre-loading userSessions and clientSessions from persistent storage finished");
}
origin: org.keycloak/keycloak-model-sessions-infinispan

@Override
public void run(KeycloakSession session) {
  InfinispanConnectionProvider connections = session.getProvider(InfinispanConnectionProvider.class);
  Cache<String, SessionEntity> cache = connections.getCache(InfinispanConnectionProvider.OFFLINE_SESSION_CACHE_NAME);
  InfinispanUserSessionInitializer initializer = new InfinispanUserSessionInitializer(sessionFactory, cache, new OfflineUserSessionLoader(), maxErrors, sessionsPerSegment, "offlineUserSessions");
  initializer.initCache();
  initializer.loadPersistentSessions();
}
org.keycloak.models.sessions.infinispan.initializerOfflineUserSessionLoader<init>

Popular methods of OfflineUserSessionLoader

    Popular in Java

    • Start an intent from android
    • runOnUiThread (Activity)
    • setScale (BigDecimal)
    • addToBackStack (FragmentTransaction)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • BigInteger (java.math)
      An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
    • Path (java.nio.file)
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • Logger (org.apache.log4j)
      This is the central class in the log4j package. Most logging operations, except configuration, are d
    • Top Sublime Text plugins
    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