public class TransactionHandleMessageAdvice extends TransactionInterceptor implements HandleMessageAdvice
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
.
TransactionAspectSupport.CoroutinesInvocationCallback, TransactionAspectSupport.InvocationCallback, TransactionAspectSupport.TransactionInfo
logger
Constructor and Description |
---|
TransactionHandleMessageAdvice() |
TransactionHandleMessageAdvice(TransactionManager transactionManager,
Properties transactionAttributes) |
TransactionHandleMessageAdvice(TransactionManager transactionManager,
TransactionAttributeSource transactionAttributeSource) |
invoke
afterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invoke
public TransactionHandleMessageAdvice()
public TransactionHandleMessageAdvice(TransactionManager transactionManager, Properties transactionAttributes)
public TransactionHandleMessageAdvice(TransactionManager transactionManager, TransactionAttributeSource transactionAttributeSource)