Class AbstractLastSessionRefreshStore
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
-
- Direct Known Subclasses:
CrossDCLastSessionRefreshStore,PersisterLastSessionRefreshStore
public abstract class AbstractLastSessionRefreshStore extends Object
Abstract "store" for bulk sending of the updates related to lastSessionRefresh- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLastSessionRefreshStore(int maxIntervalBetweenMessagesSeconds, int maxCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidputLastSessionRefresh(KeycloakSession kcSession, String sessionId, String realmId, int lastSessionRefresh)voidreset()protected abstract 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
-
-
-
Method Detail
-
putLastSessionRefresh
public void putLastSessionRefresh(KeycloakSession kcSession, String sessionId, String realmId, int lastSessionRefresh)
-
reset
public void reset()
-
sendMessage
protected abstract 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 method- Parameters:
kcSession-refreshesToSend- Key is userSession ID, SessionData are data about the session
-
-