Class CrossDCLastSessionRefreshListener
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.sessions.CrossDCLastSessionRefreshListener
- All Implemented Interfaces:
ClusterListener
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCrossDCLastSessionRefreshListener
(KeycloakSession session, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> cache, boolean offline) -
Method Summary
Modifier and TypeMethodDescriptionvoid
eventReceived
(ClusterEvent event) Registered task to be executed on all cluster nodes once it's notified from cache.protected boolean
-
Field Details
-
logger
public static final org.jboss.logging.Logger logger -
IGNORE_REMOTE_CACHE_UPDATE
- See Also:
-
-
Constructor Details
-
CrossDCLastSessionRefreshListener
public CrossDCLastSessionRefreshListener(KeycloakSession session, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> cache, boolean offline)
-
-
Method Details
-
eventReceived
Description copied from interface:ClusterListener
Registered task to be executed on all cluster nodes once it's notified from cache.- Specified by:
eventReceived
in interfaceClusterListener
- Parameters:
event
- value of notification (Object added into the cache)
-
shouldUpdateLocalCache
-