Class AllAreasHotRodStoresWrapper
java.lang.Object
org.keycloak.models.AbstractKeycloakTransaction
org.keycloak.models.map.storage.hotRod.transaction.AllAreasHotRodStoresWrapper
- All Implemented Interfaces:
KeycloakTransaction
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
ConcurrentHashMapStorage<?,
?, ?, ?> getOrCreateStoreForModel
(Class<?> modelType, Supplier<ConcurrentHashMapStorage<?, ?, ?, ?>> supplier) protected void
void
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, commit, getRollbackOnly, getState, isActive, rollback
-
Constructor Details
-
AllAreasHotRodStoresWrapper
public AllAreasHotRodStoresWrapper()
-
-
Method Details
-
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
-