Class HotRodRemoteTransactionWrapper
- java.lang.Object
-
- org.keycloak.models.map.storage.hotRod.transaction.HotRodRemoteTransactionWrapper
-
- All Implemented Interfaces:
KeycloakTransaction
public class HotRodRemoteTransactionWrapper extends Object implements KeycloakTransaction
When no JTA transaction is present in the runtime this wrapper is used to enlist HotRod client provided transaction to ourKeycloakTransactionManager. If JTA transaction is present this should not be used.
-
-
Constructor Summary
Constructors Constructor Description HotRodRemoteTransactionWrapper(javax.transaction.TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()voidcommit()booleangetRollbackOnly()booleanisActive()voidrollback()voidsetRollbackOnly()
-
-
-
Method Detail
-
begin
public void begin()
- Specified by:
beginin interfaceKeycloakTransaction
-
commit
public void commit()
- Specified by:
commitin interfaceKeycloakTransaction
-
rollback
public void rollback()
- Specified by:
rollbackin interfaceKeycloakTransaction
-
setRollbackOnly
public void setRollbackOnly()
- Specified by:
setRollbackOnlyin interfaceKeycloakTransaction
-
getRollbackOnly
public boolean getRollbackOnly()
- Specified by:
getRollbackOnlyin interfaceKeycloakTransaction
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceKeycloakTransaction
-
-