Class CrossDCLastSessionRefreshStore
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.changes.sessions.AbstractLastSessionRefreshStore
-
- org.keycloak.models.sessions.infinispan.changes.sessions.CrossDCLastSessionRefreshStore
-
public class CrossDCLastSessionRefreshStore extends AbstractLastSessionRefreshStore
Cross-DC based CrossDCLastSessionRefreshStore Tracks the queue of lastSessionRefreshes, which were updated on this host. Those will be sent to the second DC in bulk, so second DC can update lastSessionRefreshes on it's side. Message is sent either periodically or if there are lots of stored lastSessionRefreshes.- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlogger
-
Constructor Summary
Constructors Modifier Constructor Description protectedCrossDCLastSessionRefreshStore(int maxIntervalBetweenMessagesSeconds, int maxCount, String eventKey)
-
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
-
-
-
-
Constructor Detail
-
CrossDCLastSessionRefreshStore
protected CrossDCLastSessionRefreshStore(int maxIntervalBetweenMessagesSeconds, int maxCount, String eventKey)
-
-
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
-
-