Class AllAreasHotRodTransactionsWrapper
- java.lang.Object
-
- org.keycloak.models.AbstractKeycloakTransaction
-
- org.keycloak.models.map.storage.hotRod.transaction.AllAreasHotRodTransactionsWrapper
-
- All Implemented Interfaces:
KeycloakTransaction
public class AllAreasHotRodTransactionsWrapper extends AbstractKeycloakTransaction
This wrapper encapsulates transactions 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 AllAreasHotRodTransactionsWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
commitImpl()
MapKeycloakTransaction<?,?>
getOrCreateTxForModel(Class<?> modelType, Supplier<MapKeycloakTransaction<?,?>> supplier)
protected void
rollbackImpl()
void
setRollbackOnly()
-
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, commit, getRollbackOnly, getState, isActive, rollback
-
-
-
-
Method Detail
-
getOrCreateTxForModel
public MapKeycloakTransaction<?,?> getOrCreateTxForModel(Class<?> modelType, Supplier<MapKeycloakTransaction<?,?>> 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
-
-