Class PersisterLastSessionRefreshStore

java.lang.Object
org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
org.keycloak.models.sessions.infinispan.changes.sessions.PersisterLastSessionRefreshStore

public class PersisterLastSessionRefreshStore extends AbstractLastSessionRefreshStore
The store is supposed to do periodic bulk update of lastSessionRefresh times of all userSessions, which were refreshed during some period of time. The updates are sent to UserSessionPersisterProvider (DB)
Author:
Marek Posolda
  • Field Details

    • logger

      protected static final org.jboss.logging.Logger logger
  • Constructor Details

    • PersisterLastSessionRefreshStore

      protected PersisterLastSessionRefreshStore(int maxIntervalBetweenMessagesSeconds, int maxCount, boolean offline)
  • Method Details

    • sendMessage

      protected void sendMessage(org.keycloak.models.KeycloakSession kcSession, Map<String,SessionData> refreshesToSend)
      Description copied from class: AbstractLastSessionRefreshStore
      Bulk update the underlying store with all the user sessions, which were refreshed by Keycloak since the last call of this method
      Specified by:
      sendMessage in class AbstractLastSessionRefreshStore
      refreshesToSend - Key is userSession ID, SessionData are data about the session