Class TransactionProperties
java.lang.Object
org.springframework.boot.autoconfigure.transaction.TransactionProperties
- All Implemented Interfaces:
PlatformTransactionManagerCustomizer<AbstractPlatformTransactionManager>
@ConfigurationProperties(prefix="spring.transaction")
public class TransactionProperties
extends Object
implements PlatformTransactionManagerCustomizer<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:PlatformTransactionManagerCustomizer
Customize the given transaction manager.- Specified by:
customize
in interfacePlatformTransactionManagerCustomizer<AbstractPlatformTransactionManager>
- Parameters:
transactionManager
- the transaction manager to customize
-