Class AllAreasHotRodStoresWrapper
- java.lang.Object
-
- org.keycloak.models.AbstractKeycloakTransaction
-
- org.keycloak.models.map.storage.hotRod.transaction.AllAreasHotRodStoresWrapper
-
- All Implemented Interfaces:
KeycloakTransaction
public class AllAreasHotRodStoresWrapper extends AbstractKeycloakTransaction
This wrapper encapsulates stores from all areas. This is needed because we need to control when the changes from each area are applied to make sure it is performed before the HotRod client provided transaction is committed.
-
-
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
logger, state
-
-
Constructor Summary
Constructors Constructor Description AllAreasHotRodStoresWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
commitImpl()
ConcurrentHashMapStorage<?,?,?>
getOrCreateStoreForModel(Class<?> modelType, Supplier<ConcurrentHashMapStorage<?,?,?>> supplier)
protected void
rollbackImpl()
void
setRollbackOnly()
-
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, commit, getRollbackOnly, getState, isActive, rollback
-
-
-
-
Method Detail
-
getOrCreateStoreForModel
public ConcurrentHashMapStorage<?,?,?> getOrCreateStoreForModel(Class<?> modelType, Supplier<ConcurrentHashMapStorage<?,?,?>> supplier)
-
commitImpl
protected void commitImpl()
- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()
- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-
setRollbackOnly
public void setRollbackOnly()
- Specified by:
setRollbackOnly
in interfaceKeycloakTransaction
- Overrides:
setRollbackOnly
in classAbstractKeycloakTransaction
-
-