Class RemoteCacheSessionListener<K,V extends SessionEntity>
java.lang.Object
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionListener<K,V>
- Direct Known Subclasses:
RemoteCacheSessionListener.DontFetchInitialStateCacheListener,RemoteCacheSessionListener.FetchInitialStateCacheListener
- Author:
- Marek Posolda
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreated(org.infinispan.client.hotrod.event.ClientCacheEntryCreatedEvent event) static <K,V extends SessionEntity>
RemoteCacheSessionListenercreateListener(KeycloakSession session, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K, SessionEntityWrapper<V>> remoteCache, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) protected voidcreateRemoteEntityInCache(K key, long eventVersion) protected voidinit(KeycloakSession session, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K, SessionEntityWrapper<V>> remoteCache, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) voidremoved(org.infinispan.client.hotrod.event.ClientCacheEntryRemovedEvent event) protected voidreplaceRemoteEntityInCache(K key, long eventVersion) protected booleanshouldUpdateLocalCache(org.infinispan.client.hotrod.event.ClientEvent.Type type, K key, boolean commandRetried) voidupdated(org.infinispan.client.hotrod.event.ClientCacheEntryModifiedEvent event)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
RemoteCacheSessionListener
protected RemoteCacheSessionListener()
-
-
Method Details
-
init
protected void init(KeycloakSession session, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K, SessionEntityWrapper<V>> remoteCache, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) -
created
public void created(org.infinispan.client.hotrod.event.ClientCacheEntryCreatedEvent event) -
updated
public void updated(org.infinispan.client.hotrod.event.ClientCacheEntryModifiedEvent event) -
createRemoteEntityInCache
-
replaceRemoteEntityInCache
-
removed
public void removed(org.infinispan.client.hotrod.event.ClientCacheEntryRemovedEvent event) -
shouldUpdateLocalCache
protected boolean shouldUpdateLocalCache(org.infinispan.client.hotrod.event.ClientEvent.Type type, K key, boolean commandRetried) -
createListener
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, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader)
-