public class RemoteCacheSessionListener<K,V extends SessionEntity> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RemoteCacheSessionListener.DontFetchInitialStateCacheListener |
static class |
RemoteCacheSessionListener.FetchInitialStateCacheListener |
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
Modifier | Constructor and Description |
---|---|
protected |
RemoteCacheSessionListener() |
Modifier and Type | Method and Description |
---|---|
void |
created(org.infinispan.client.hotrod.event.ClientCacheEntryCreatedEvent event) |
static <K,V extends SessionEntity> |
createListener(KeycloakSession session,
org.infinispan.Cache<K,SessionEntityWrapper<V>> cache,
org.infinispan.client.hotrod.RemoteCache<K,SessionEntityWrapper<V>> remoteCache) |
protected void |
createRemoteEntityInCache(K key,
long eventVersion) |
protected void |
init(KeycloakSession session,
org.infinispan.Cache<K,SessionEntityWrapper<V>> cache,
org.infinispan.client.hotrod.RemoteCache<K,SessionEntityWrapper<V>> remoteCache) |
void |
removed(org.infinispan.client.hotrod.event.ClientCacheEntryRemovedEvent event) |
protected void |
replaceRemoteEntityInCache(K key,
long eventVersion) |
protected boolean |
shouldUpdateLocalCache(org.infinispan.client.hotrod.event.ClientEvent.Type type,
K key,
boolean commandRetried) |
void |
updated(org.infinispan.client.hotrod.event.ClientCacheEntryModifiedEvent event) |
protected void init(KeycloakSession session, org.infinispan.Cache<K,SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K,SessionEntityWrapper<V>> remoteCache)
public void created(org.infinispan.client.hotrod.event.ClientCacheEntryCreatedEvent event)
public void updated(org.infinispan.client.hotrod.event.ClientCacheEntryModifiedEvent event)
protected void createRemoteEntityInCache(K key, long eventVersion)
protected void replaceRemoteEntityInCache(K key, long eventVersion)
public void removed(org.infinispan.client.hotrod.event.ClientCacheEntryRemovedEvent event)
protected boolean shouldUpdateLocalCache(org.infinispan.client.hotrod.event.ClientEvent.Type type, K key, boolean commandRetried)
public static <K,V extends SessionEntity> RemoteCacheSessionListener createListener(KeycloakSession session, org.infinispan.Cache<K,SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K,SessionEntityWrapper<V>> remoteCache)
Copyright © 2020 JBoss by Red Hat. All rights reserved.