Class HotRodRemoteTransactionWrapper
java.lang.Object
org.keycloak.models.map.storage.hotRod.transaction.HotRodRemoteTransactionWrapper
- All Implemented Interfaces:
KeycloakTransaction
When no JTA transaction is present in the runtime this wrapper is used
to enlist HotRod client provided transaction to our
KeycloakTransactionManager
. If JTA transaction is present this should
not be used.-
Constructor Summary
ConstructorDescriptionHotRodRemoteTransactionWrapper
(jakarta.transaction.TransactionManager transactionManager) -
Method Summary
-
Constructor Details
-
HotRodRemoteTransactionWrapper
public HotRodRemoteTransactionWrapper(jakarta.transaction.TransactionManager transactionManager)
-
-
Method Details
-
begin
public void begin()- Specified by:
begin
in interfaceKeycloakTransaction
-
commit
public void commit()- Specified by:
commit
in interfaceKeycloakTransaction
-
rollback
public void rollback()- Specified by:
rollback
in interfaceKeycloakTransaction
-
setRollbackOnly
public void setRollbackOnly()- Specified by:
setRollbackOnly
in interfaceKeycloakTransaction
-
getRollbackOnly
public boolean getRollbackOnly()- Specified by:
getRollbackOnly
in interfaceKeycloakTransaction
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceKeycloakTransaction
-