Class AbstractLastSessionRefreshStore
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
- Direct Known Subclasses:
CrossDCLastSessionRefreshStore
,PersisterLastSessionRefreshStore
Abstract "store" for bulk sending of the updates related to lastSessionRefresh
- Author:
- Marek Posolda
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractLastSessionRefreshStore
(int maxIntervalBetweenMessagesSeconds, int maxCount) -
Method Summary
Modifier and TypeMethodDescriptionvoid
putLastSessionRefresh
(KeycloakSession kcSession, String sessionId, String realmId, int lastSessionRefresh) void
reset()
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
-
Constructor Details
-
AbstractLastSessionRefreshStore
protected AbstractLastSessionRefreshStore(int maxIntervalBetweenMessagesSeconds, int maxCount)
-
-
Method Details
-
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
-