Class TracePlatformTransactionManager
java.lang.Object
org.springframework.cloud.sleuth.instrument.tx.TracePlatformTransactionManager
- All Implemented Interfaces:
org.springframework.transaction.PlatformTransactionManager,org.springframework.transaction.TransactionManager
- Direct Known Subclasses:
TraceKafkaAwareTransactionManager
public class TracePlatformTransactionManager
extends Object
implements org.springframework.transaction.PlatformTransactionManager
A trace representation of a
PlatformTransactionManager.- Since:
- 3.1.0
- Author:
- Marcin Grzejszczak
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.springframework.transaction.PlatformTransactionManager -
Constructor Summary
ConstructorsConstructorDescriptionTracePlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager delegate, org.springframework.beans.factory.BeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(org.springframework.transaction.TransactionStatus status) org.springframework.transaction.TransactionStatusgetTransaction(org.springframework.transaction.TransactionDefinition definition) voidrollback(org.springframework.transaction.TransactionStatus status)
-
Field Details
-
delegate
protected final org.springframework.transaction.PlatformTransactionManager delegate
-
-
Constructor Details
-
TracePlatformTransactionManager
public TracePlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager delegate, org.springframework.beans.factory.BeanFactory beanFactory)
-
-
Method Details
-
getTransaction
public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition definition) throws org.springframework.transaction.TransactionException - Specified by:
getTransactionin interfaceorg.springframework.transaction.PlatformTransactionManager- Throws:
org.springframework.transaction.TransactionException
-
commit
public void commit(org.springframework.transaction.TransactionStatus status) throws org.springframework.transaction.TransactionException - Specified by:
commitin interfaceorg.springframework.transaction.PlatformTransactionManager- Throws:
org.springframework.transaction.TransactionException
-
rollback
public void rollback(org.springframework.transaction.TransactionStatus status) throws org.springframework.transaction.TransactionException - Specified by:
rollbackin interfaceorg.springframework.transaction.PlatformTransactionManager- Throws:
org.springframework.transaction.TransactionException
-