Package io.mats3.impl.jms
Interface JmsMatsTransactionManager
- All Known Implementing Classes:
JmsMatsTransactionManager_Jms
,JmsMatsTransactionManager_JmsAndJdbc
,JmsMatsTransactionManager_JmsAndSpringManagedSqlTx
public interface JmsMatsTransactionManager
Transactional aspects of the JMS Mats implementation. (It is the duty of the Mats implementation to ensure that the
transactional principles of Mats are honored).
The reason for this being an interface, is that the transactional aspects can be implemented through different means. Specifically, there is a direct implementation, and the intention is to also have a Spring-specific implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Provided togetTransactionContext(...)
when a Mats-component fetches the TransactionContext implementation.static interface
The lambda that is provided to theJmsMatsTransactionManager
for it to provide transactional demarcation around.static interface
Implementors shall do the transactional processing and handle any Throwable that comes out of theJmsMatsTransactionManager.ProcessingLambda
by rolling back. -
Method Summary
Modifier and TypeMethodDescriptionProvides an implementation ofJmsMatsTransactionManager.TransactionContext
.
-
Method Details
-
getTransactionContext
JmsMatsTransactionManager.TransactionContext getTransactionContext(JmsMatsTransactionManager.JmsMatsTxContextKey txContextKey) Provides an implementation ofJmsMatsTransactionManager.TransactionContext
. (JMS Connection and Session handling is done byJmsMatsJmsSessionHandler
).- Parameters:
txContextKey
- for whichJmsMatsStage
orJmsMatsInitiator
this request forJmsMatsTransactionManager.TransactionContext
is for.- Returns:
- a
JmsMatsTransactionManager.TransactionContext
for the supplied txContextKey.
-