Class CrossDCLastSessionRefreshListener
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.changes.sessions.CrossDCLastSessionRefreshListener
-
- All Implemented Interfaces:
ClusterListener
public class CrossDCLastSessionRefreshListener extends Object implements ClusterListener
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description static StringIGNORE_REMOTE_CACHE_UPDATEstatic org.jboss.logging.Loggerlogger
-
Constructor Summary
Constructors Constructor Description CrossDCLastSessionRefreshListener(KeycloakSession session, org.infinispan.Cache<String,SessionEntityWrapper<UserSessionEntity>> cache, boolean offline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideventReceived(ClusterEvent event)protected booleanshouldUpdateLocalCache(String key)
-
-
-
Field Detail
-
logger
public static final org.jboss.logging.Logger logger
-
IGNORE_REMOTE_CACHE_UPDATE
public static final String IGNORE_REMOTE_CACHE_UPDATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CrossDCLastSessionRefreshListener
public CrossDCLastSessionRefreshListener(KeycloakSession session, org.infinispan.Cache<String,SessionEntityWrapper<UserSessionEntity>> cache, boolean offline)
-
-
Method Detail
-
eventReceived
public void eventReceived(ClusterEvent event)
- Specified by:
eventReceivedin interfaceClusterListener
-
shouldUpdateLocalCache
protected boolean shouldUpdateLocalCache(String key)
-
-