Package org.redisson.spring.transaction
Class ReactiveRedissonTransactionManager
java.lang.Object
org.springframework.transaction.reactive.AbstractReactiveTransactionManager
org.redisson.spring.transaction.ReactiveRedissonTransactionManager
- All Implemented Interfaces:
Serializable
,org.springframework.transaction.ReactiveTransactionManager
,org.springframework.transaction.TransactionManager
public class ReactiveRedissonTransactionManager
extends org.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Author:
- Nikita Koksharov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
org.springframework.transaction.reactive.AbstractReactiveTransactionManager.SuspendedResourcesHolder
-
Field Summary
Fields inherited from class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Void>
doBegin
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction, org.springframework.transaction.TransactionDefinition definition) protected reactor.core.publisher.Mono<Void>
doCleanupAfterCompletion
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction) protected reactor.core.publisher.Mono<Void>
doCommit
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction status) protected Object
doGetTransaction
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager) protected reactor.core.publisher.Mono<Void>
doResume
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction, Object suspendedResources) protected reactor.core.publisher.Mono<Void>
doRollback
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction status) protected reactor.core.publisher.Mono<Void>
doSetRollbackOnly
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction status) protected reactor.core.publisher.Mono<Object>
doSuspend
(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction) reactor.core.publisher.Mono<RTransactionReactive>
protected boolean
isExistingTransaction
(Object transaction) Methods inherited from class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
commit, getReactiveTransaction, prepareForCommit, registerAfterCompletionWithExistingTransaction, rollback
-
Constructor Details
-
ReactiveRedissonTransactionManager
-
-
Method Details
-
getCurrentTransaction
-
doGetTransaction
protected Object doGetTransaction(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager) throws org.springframework.transaction.TransactionException - Specified by:
doGetTransaction
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doBegin
protected reactor.core.publisher.Mono<Void> doBegin(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction, org.springframework.transaction.TransactionDefinition definition) throws org.springframework.transaction.TransactionException - Specified by:
doBegin
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doCommit
protected reactor.core.publisher.Mono<Void> doCommit(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction status) throws org.springframework.transaction.TransactionException - Specified by:
doCommit
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doRollback
protected reactor.core.publisher.Mono<Void> doRollback(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction status) throws org.springframework.transaction.TransactionException - Specified by:
doRollback
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doSuspend
protected reactor.core.publisher.Mono<Object> doSuspend(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction) throws org.springframework.transaction.TransactionException - Overrides:
doSuspend
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doResume
protected reactor.core.publisher.Mono<Void> doResume(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction, Object suspendedResources) throws org.springframework.transaction.TransactionException - Overrides:
doResume
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doSetRollbackOnly
protected reactor.core.publisher.Mono<Void> doSetRollbackOnly(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction status) throws org.springframework.transaction.TransactionException - Overrides:
doSetRollbackOnly
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
doCleanupAfterCompletion
protected reactor.core.publisher.Mono<Void> doCleanupAfterCompletion(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transaction) - Overrides:
doCleanupAfterCompletion
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
-
isExistingTransaction
protected boolean isExistingTransaction(Object transaction) throws org.springframework.transaction.TransactionException - Overrides:
isExistingTransaction
in classorg.springframework.transaction.reactive.AbstractReactiveTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-