Class TransactionHandleMessageAdvice

java.lang.Object
org.springframework.transaction.interceptor.TransactionAspectSupport
org.springframework.transaction.interceptor.TransactionInterceptor
org.springframework.integration.transaction.TransactionHandleMessageAdvice
All Implemented Interfaces:
java.io.Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, HandleMessageAdvice

public class TransactionHandleMessageAdvice
extends org.springframework.transaction.interceptor.TransactionInterceptor
implements HandleMessageAdvice
A TransactionInterceptor extension with HandleMessageAdvice marker.

When this Advice is used from the request-handler-advice-chain, it is applied to the MessageHandler.handleMessage(org.springframework.messaging.Message<?>) (not to the AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage(org.springframework.messaging.Message<?>)), therefore the entire downstream process is wrapped to the transaction.

In any other cases it is operated as a regular TransactionInterceptor.

Since:
5.0
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport

    org.springframework.transaction.interceptor.TransactionAspectSupport.CoroutinesInvocationCallback, org.springframework.transaction.interceptor.TransactionAspectSupport.InvocationCallback, org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo
  • Field Summary

    Fields inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport

    logger
  • Constructor Summary

    Constructors 
    Constructor Description
    TransactionHandleMessageAdvice()  
    TransactionHandleMessageAdvice​(org.springframework.transaction.TransactionManager transactionManager, java.util.Properties transactionAttributes)  
    TransactionHandleMessageAdvice​(org.springframework.transaction.TransactionManager transactionManager, org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource)  
  • Method Summary

    Methods inherited from class org.springframework.transaction.interceptor.TransactionInterceptor

    invoke

    Methods inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport

    afterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aopalliance.intercept.MethodInterceptor

    invoke
  • Constructor Details

    • TransactionHandleMessageAdvice

      public TransactionHandleMessageAdvice()
    • TransactionHandleMessageAdvice

      public TransactionHandleMessageAdvice​(org.springframework.transaction.TransactionManager transactionManager, java.util.Properties transactionAttributes)
    • TransactionHandleMessageAdvice

      public TransactionHandleMessageAdvice​(org.springframework.transaction.TransactionManager transactionManager, org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource)