Class InfinispanChangesUtils
java.lang.Object
org.keycloak.models.sessions.infinispan.changes.InfinispanChangesUtils
Utility methods for embedded and change-log based transaction
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V extends SessionEntity>
CacheHolder<K,V> createWithCache
(KeycloakSession session, String cacheName, SessionFunction<V> lifespanFunction, SessionFunction<V> maxIdleFunction) static <K,
V extends SessionEntity>
CacheHolder<K,V> createWithoutCache
(SessionFunction<V> lifespanFunction, SessionFunction<V> maxIdleFunction) static <K,
V extends SessionEntity>
voidrunOperationInCluster
(CacheHolder<K, V> cacheHolder, K key, MergedUpdate<V> task, SessionEntityWrapper<V> sessionWrapper, org.infinispan.commons.util.concurrent.AggregateCompletionStage<Void> stage, org.jboss.logging.Logger logger)
-
Method Details
-
createWithCache
public static <K,V extends SessionEntity> CacheHolder<K,V> createWithCache(KeycloakSession session, String cacheName, SessionFunction<V> lifespanFunction, SessionFunction<V> maxIdleFunction) -
createWithoutCache
public static <K,V extends SessionEntity> CacheHolder<K,V> createWithoutCache(SessionFunction<V> lifespanFunction, SessionFunction<V> maxIdleFunction) -
runOperationInCluster
public static <K,V extends SessionEntity> void runOperationInCluster(CacheHolder<K, V> cacheHolder, K key, MergedUpdate<V> task, SessionEntityWrapper<V> sessionWrapper, org.infinispan.commons.util.concurrent.AggregateCompletionStage<Void> stage, org.jboss.logging.Logger logger)
-