Class InfinispanChangelogBasedTransaction<K,V extends SessionEntity>
- java.lang.Object
-
- org.keycloak.models.AbstractKeycloakTransaction
-
- org.keycloak.models.sessions.infinispan.changes.InfinispanChangelogBasedTransaction<K,V>
-
- All Implemented Interfaces:
KeycloakTransaction
public class InfinispanChangelogBasedTransaction<K,V extends SessionEntity> extends AbstractKeycloakTransaction
- Author:
- Marek Posolda
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.keycloak.models.AbstractKeycloakTransaction
AbstractKeycloakTransaction.TransactionState
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logging.Logger
logger
-
Fields inherited from class org.keycloak.models.AbstractKeycloakTransaction
state
-
-
Constructor Summary
Constructors Constructor Description InfinispanChangelogBasedTransaction(KeycloakSession kcSession, org.infinispan.Cache<K,SessionEntityWrapper<V>> cache, RemoteCacheInvoker remoteCacheInvoker, BiFunction<RealmModel,V,Long> lifespanMsLoader, BiFunction<RealmModel,V,Long> maxIdleTimeMsLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTask(K key, SessionUpdateTask<V> task)
void
addTask(K key, SessionUpdateTask<V> task, V entity, UserSessionModel.SessionPersistenceState persistenceState)
protected void
commitImpl()
SessionEntityWrapper<V>
get(K key)
void
reloadEntityInCurrentTransaction(RealmModel realm, K key, SessionEntityWrapper<V> entity)
protected void
rollbackImpl()
-
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
-
-
-
-
Constructor Detail
-
InfinispanChangelogBasedTransaction
public InfinispanChangelogBasedTransaction(KeycloakSession kcSession, org.infinispan.Cache<K,SessionEntityWrapper<V>> cache, RemoteCacheInvoker remoteCacheInvoker, BiFunction<RealmModel,V,Long> lifespanMsLoader, BiFunction<RealmModel,V,Long> maxIdleTimeMsLoader)
-
-
Method Detail
-
addTask
public void addTask(K key, SessionUpdateTask<V> task)
-
addTask
public void addTask(K key, SessionUpdateTask<V> task, V entity, UserSessionModel.SessionPersistenceState persistenceState)
-
reloadEntityInCurrentTransaction
public void reloadEntityInCurrentTransaction(RealmModel realm, K key, SessionEntityWrapper<V> entity)
-
get
public SessionEntityWrapper<V> get(K key)
-
commitImpl
protected void commitImpl()
- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()
- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-
-