Class PersisterLastSessionRefreshStore
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
org.keycloak.models.sessions.infinispan.changes.sessions.PersisterLastSessionRefreshStore
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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PersisterLastSessionRefreshStore
(int maxIntervalBetweenMessagesSeconds, int maxCount, boolean offline) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
sendMessage
(KeycloakSession kcSession, Map<String, SessionData> refreshesToSend) Bulk update the underlying store with all the user sessions, which were refreshed by Keycloak since the last call of this methodMethods inherited from class org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
putLastSessionRefresh, reset
-
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
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 classAbstractLastSessionRefreshStore
refreshesToSend
- Key is userSession ID, SessionData are data about the session
-