public class TransactionInterceptorBuilder extends Object
TransactionAttribute
for property meanings; if a TransactionAttribute
is provided, the individual properties are ignored. If a
TransactionManager
is not provided, a single instance of
TransactionManager
will be discovered at runtime; if you have more
than one transaction manager, you must inject the one you want to use here.
When the handleMessageAdvice
option is in use, this builder produces
TransactionHandleMessageAdvice
instance.
Constructor and Description |
---|
TransactionInterceptorBuilder() |
TransactionInterceptorBuilder(boolean handleMessageAdvice) |
Modifier and Type | Method and Description |
---|---|
TransactionInterceptor |
build() |
TransactionInterceptorBuilder |
isolation(Isolation isolation) |
TransactionInterceptorBuilder |
propagation(Propagation propagation) |
TransactionInterceptorBuilder |
readOnly(boolean readOnly) |
TransactionInterceptorBuilder |
timeout(int timeout) |
TransactionInterceptorBuilder |
transactionAttribute(TransactionAttribute transactionAttribute) |
TransactionInterceptorBuilder |
transactionManager(TransactionManager transactionManager)
Provide a
TransactionManager instance to use. |
public TransactionInterceptorBuilder()
public TransactionInterceptorBuilder(boolean handleMessageAdvice)
public TransactionInterceptorBuilder propagation(Propagation propagation)
public TransactionInterceptorBuilder isolation(Isolation isolation)
public TransactionInterceptorBuilder timeout(int timeout)
public TransactionInterceptorBuilder readOnly(boolean readOnly)
public final TransactionInterceptorBuilder transactionAttribute(TransactionAttribute transactionAttribute)
public TransactionInterceptorBuilder transactionManager(TransactionManager transactionManager)
TransactionManager
instance to use.transactionManager
- the TransactionManager
to usepublic TransactionInterceptor build()