Class TransactionHandleMessageAdvice
java.lang.Object
org.springframework.transaction.interceptor.TransactionAspectSupport
org.springframework.transaction.interceptor.TransactionInterceptor
org.springframework.integration.transaction.TransactionHandleMessageAdvice
- All Implemented Interfaces:
Serializable
,Advice
,Interceptor
,MethodInterceptor
,Aware
,BeanFactoryAware
,InitializingBean
,HandleMessageAdvice
public class TransactionHandleMessageAdvice
extends 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
- Author:
- Artem Bilan, Gary Russell
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport
TransactionAspectSupport.InvocationCallback, TransactionAspectSupport.TransactionInfo
-
Field Summary
Fields inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport
logger
-
Constructor Summary
ConstructorDescriptionTransactionHandleMessageAdvice
(TransactionManager transactionManager, Properties transactionAttributes) TransactionHandleMessageAdvice
(TransactionManager transactionManager, 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, 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(TransactionManager transactionManager, Properties transactionAttributes) -
TransactionHandleMessageAdvice
public TransactionHandleMessageAdvice(TransactionManager transactionManager, TransactionAttributeSource transactionAttributeSource)
-