public class InfinispanChangelogBasedTransaction<K,V extends SessionEntity> extends AbstractKeycloakTransaction
AbstractKeycloakTransaction.TransactionState
Modifier and Type | Field and Description |
---|---|
static org.jboss.logging.Logger |
logger |
state
Constructor and Description |
---|
InfinispanChangelogBasedTransaction(KeycloakSession kcSession,
org.infinispan.Cache<K,SessionEntityWrapper<V>> cache,
RemoteCacheInvoker remoteCacheInvoker) |
Modifier and Type | Method and Description |
---|---|
void |
addTask(K key,
SessionUpdateTask<V> task) |
void |
addTask(K key,
SessionUpdateTask<V> task,
V entity) |
protected void |
commitImpl() |
SessionEntityWrapper<V> |
get(K key) |
void |
reloadEntityInCurrentTransaction(RealmModel realm,
K key,
SessionEntityWrapper<V> entity) |
protected void |
rollbackImpl() |
begin, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
public InfinispanChangelogBasedTransaction(KeycloakSession kcSession, org.infinispan.Cache<K,SessionEntityWrapper<V>> cache, RemoteCacheInvoker remoteCacheInvoker)
public void addTask(K key, SessionUpdateTask<V> task)
public void addTask(K key, SessionUpdateTask<V> task, V entity)
public void reloadEntityInCurrentTransaction(RealmModel realm, K key, SessionEntityWrapper<V> entity)
public SessionEntityWrapper<V> get(K key)
protected void commitImpl()
commitImpl
in class AbstractKeycloakTransaction
protected void rollbackImpl()
rollbackImpl
in class AbstractKeycloakTransaction
Copyright © 2020 JBoss by Red Hat. All rights reserved.