public class CrossDCLastSessionRefreshListener extends Object implements ClusterListener
Modifier and Type | Field and Description |
---|---|
static String |
IGNORE_REMOTE_CACHE_UPDATE |
static org.jboss.logging.Logger |
logger |
Constructor and Description |
---|
CrossDCLastSessionRefreshListener(KeycloakSession session,
org.infinispan.Cache<String,SessionEntityWrapper<UserSessionEntity>> cache,
boolean offline) |
Modifier and Type | Method and Description |
---|---|
void |
eventReceived(ClusterEvent event)
Registered task to be executed on all cluster nodes once it's notified from cache.
|
protected boolean |
shouldUpdateLocalCache(String key) |
public static final org.jboss.logging.Logger logger
public static final String IGNORE_REMOTE_CACHE_UPDATE
public CrossDCLastSessionRefreshListener(KeycloakSession session, org.infinispan.Cache<String,SessionEntityWrapper<UserSessionEntity>> cache, boolean offline)
public void eventReceived(ClusterEvent event)
ClusterListener
eventReceived
in interface ClusterListener
event
- value of notification (Object added into the cache)protected boolean shouldUpdateLocalCache(String key)
Copyright © 2021 JBoss by Red Hat. All rights reserved.