Class TransactionProperties
java.lang.Object
org.springframework.boot.autoconfigure.transaction.TransactionProperties
- All Implemented Interfaces:
TransactionManagerCustomizer<AbstractPlatformTransactionManager>
@ConfigurationProperties(prefix="spring.transaction")
public class TransactionProperties
extends Object
implements TransactionManagerCustomizer<AbstractPlatformTransactionManager>
Configuration properties that can be applied to an
AbstractPlatformTransactionManager
.- Since:
- 1.5.0
- Author:
- Kazuki Shimizu, Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(AbstractPlatformTransactionManager transactionManager) Customize the given transaction manager.void
setDefaultTimeout
(Duration defaultTimeout) void
setRollbackOnCommitFailure
(Boolean rollbackOnCommitFailure)
-
Constructor Details
-
TransactionProperties
public TransactionProperties()
-
-
Method Details
-
getDefaultTimeout
-
setDefaultTimeout
-
getRollbackOnCommitFailure
-
setRollbackOnCommitFailure
-
customize
Description copied from interface:TransactionManagerCustomizer
Customize the given transaction manager.- Specified by:
customize
in interfaceTransactionManagerCustomizer<AbstractPlatformTransactionManager>
- Parameters:
transactionManager
- the transaction manager to customize
-