Class RedissonTransactionManager

  • All Implemented Interfaces:
    Serializable, org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.support.ResourceTransactionManager, org.springframework.transaction.TransactionManager

    public class RedissonTransactionManager
    extends org.springframework.transaction.support.AbstractPlatformTransactionManager
    implements org.springframework.transaction.support.ResourceTransactionManager
    Author:
    Nikita Koksharov
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager

        org.springframework.transaction.support.AbstractPlatformTransactionManager.SuspendedResourcesHolder
    • Field Summary

      • Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager

        logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doBegin(Object transaction, org.springframework.transaction.TransactionDefinition definition)  
      protected void doCleanupAfterCompletion(Object transaction)  
      protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)  
      protected Object doGetTransaction()  
      protected void doResume(Object transaction, Object suspendedResources)  
      protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)  
      protected void doSetRollbackOnly(org.springframework.transaction.support.DefaultTransactionStatus status)  
      protected Object doSuspend(Object transaction)  
      RTransaction getCurrentTransaction()  
      Object getResourceFactory()  
      protected boolean isExistingTransaction(Object transaction)  
      • Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager

        commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
      • Methods inherited from interface org.springframework.transaction.PlatformTransactionManager

        commit, getTransaction, rollback
    • Constructor Detail

      • RedissonTransactionManager

        public RedissonTransactionManager(RedissonClient redisson)
    • Method Detail

      • getCurrentTransaction

        public RTransaction getCurrentTransaction()
      • doGetTransaction

        protected Object doGetTransaction()
                                   throws org.springframework.transaction.TransactionException
        Specified by:
        doGetTransaction in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • isExistingTransaction

        protected boolean isExistingTransaction(Object transaction)
                                         throws org.springframework.transaction.TransactionException
        Overrides:
        isExistingTransaction in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doBegin

        protected void doBegin(Object transaction,
                               org.springframework.transaction.TransactionDefinition definition)
                        throws org.springframework.transaction.TransactionException
        Specified by:
        doBegin in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doCommit

        protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)
                         throws org.springframework.transaction.TransactionException
        Specified by:
        doCommit in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doRollback

        protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)
                           throws org.springframework.transaction.TransactionException
        Specified by:
        doRollback in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doSetRollbackOnly

        protected void doSetRollbackOnly(org.springframework.transaction.support.DefaultTransactionStatus status)
                                  throws org.springframework.transaction.TransactionException
        Overrides:
        doSetRollbackOnly in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doResume

        protected void doResume(Object transaction,
                                Object suspendedResources)
                         throws org.springframework.transaction.TransactionException
        Overrides:
        doResume in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doSuspend

        protected Object doSuspend(Object transaction)
                            throws org.springframework.transaction.TransactionException
        Overrides:
        doSuspend in class org.springframework.transaction.support.AbstractPlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • doCleanupAfterCompletion

        protected void doCleanupAfterCompletion(Object transaction)
        Overrides:
        doCleanupAfterCompletion in class org.springframework.transaction.support.AbstractPlatformTransactionManager
      • getResourceFactory

        public Object getResourceFactory()
        Specified by:
        getResourceFactory in interface org.springframework.transaction.support.ResourceTransactionManager