@Singleton public class SimpleTransactionRunner extends Object implements TransactionRunner
| Constructor and Description |
|---|
SimpleTransactionRunner(TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxTransactionAttempts() |
TransactionManager |
getTransactionManager() |
void |
runAsTransaction(Runnable task) |
void |
setMaxTransactionAttempts(int maxTransactionAttempts) |
void |
setTransactionFactory(TransactionFactory transactionFactory) |
@Inject public SimpleTransactionRunner(TransactionManager transactionManager)
public void setTransactionFactory(TransactionFactory transactionFactory)
public int getMaxTransactionAttempts()
public void setMaxTransactionAttempts(int maxTransactionAttempts)
public TransactionManager getTransactionManager()
public void runAsTransaction(Runnable task)
runAsTransaction in interface TransactionRunnerCopyright © 2016. All rights reserved.