Class PseudoTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.integration.transaction.PseudoTransactionManager
- All Implemented Interfaces:
Serializable
,ConfigurableTransactionManager
,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, getTransactionExecutionListeners, getTransactionSynchronization, invokeAfterCompletion, isExistingTransaction, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, prepareForCommit, prepareSynchronization, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionExecutionListeners, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.transaction.ConfigurableTransactionManager
addListener
-
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
-