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 Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlogger
-
Constructor Summary
Constructors Modifier Constructor Description protectedPersisterLastSessionRefreshStore(int maxIntervalBetweenMessagesSeconds, int maxCount, boolean offline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsendMessage(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 method-
Methods inherited from class org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
putLastSessionRefresh, reset
-
-
-
-
Method Detail
-
sendMessage
protected void sendMessage(KeycloakSession kcSession, Map<String,SessionData> refreshesToSend)
Description copied from class:AbstractLastSessionRefreshStoreBulk update the underlying store with all the user sessions, which were refreshed by Keycloak since the last call of this method- Specified by:
sendMessagein classAbstractLastSessionRefreshStorerefreshesToSend- Key is userSession ID, SessionData are data about the session
-
-