Class PseudoTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.integration.transaction.PseudoTransactionManager
- All Implemented Interfaces:
Serializable
,PlatformTransactionManager
,TransactionManager
An implementation of
PlatformTransactionManager
that provides transaction-like semantics to
MessageSource
s that are not inherently
transactional. It does not make such
sources transactional; rather, together with a TransactionSynchronizationFactory
, it provides
the ability to synchronize operations after a flow completes, via beforeCommit, afterCommit and
afterRollback operations.- Since:
- 2.2
- Author:
- Gary Russell, Oleg Zhurakousky
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
AbstractPlatformTransactionManager.SuspendedResourcesHolder
-
Field Summary
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doBegin
(Object transaction, TransactionDefinition definition) protected void
doCommit
(DefaultTransactionStatus status) protected Object
protected void
doRollback
(DefaultTransactionStatus status) Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, doCleanupAfterCompletion, doResume, doSetRollbackOnly, doSuspend, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isExistingTransaction, 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
-
Constructor Details
-
PseudoTransactionManager
public PseudoTransactionManager()
-
-
Method Details
-
doGetTransaction
- Specified by:
doGetTransaction
in classAbstractPlatformTransactionManager
- Throws:
TransactionException
-
doBegin
protected void doBegin(Object transaction, TransactionDefinition definition) throws TransactionException - Specified by:
doBegin
in classAbstractPlatformTransactionManager
- Throws:
TransactionException
-
doCommit
- Specified by:
doCommit
in classAbstractPlatformTransactionManager
- Throws:
TransactionException
-
doRollback
- Specified by:
doRollback
in classAbstractPlatformTransactionManager
- Throws:
TransactionException
-