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 inherited from class org.keycloak.models.AbstractKeycloakTransaction
state
-
Constructor Summary
ConstructorDescriptionInfinispanChangelogBasedTransaction
(KeycloakSession kcSession, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, RemoteCacheInvoker remoteCacheInvoker, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTask
(K key, SessionUpdateTask<V> task) void
addTask
(K key, SessionUpdateTask<V> task, V entity, UserSessionModel.SessionPersistenceState persistenceState) protected void
void
reloadEntityInCurrentTransaction
(RealmModel realm, K key, SessionEntityWrapper<V> entity) protected void
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
-
Field Details
-
logger
public static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
InfinispanChangelogBasedTransaction
public InfinispanChangelogBasedTransaction(KeycloakSession kcSession, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, RemoteCacheInvoker remoteCacheInvoker, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader)
-
-
Method Details
-
addTask
-
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
-
commitImpl
protected void commitImpl()- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-