|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.eventhandling.transactionmanagers.SpringTransactionManager
public class SpringTransactionManager
TransactionManager implementation that uses a PlatformTransactionManager as
underlying transaction manager.
| Constructor Summary | |
|---|---|
SpringTransactionManager()
|
|
| Method Summary | |
|---|---|
void |
afterTransaction(TransactionStatus transactionStatus)
Invoked by the EventProcessingScheduler after a series of events is processed. |
void |
beforeTransaction(TransactionStatus transactionStatus)
Invoked by the EventProcessingScheduler before processing a series of events. |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
The PlatformTransactionManager that manages the transactions with the underlying data source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringTransactionManager()
| Method Detail |
|---|
public void beforeTransaction(TransactionStatus transactionStatus)
TransactionManagerTransactionStatus
may be used to set the maximum batch size for the current transaction.
beforeTransaction in interface TransactionManagertransactionStatus - The current status of the transactionTransactionManager.afterTransaction(TransactionStatus),
TransactionStatuspublic void afterTransaction(TransactionStatus transactionStatus)
TransactionManagerTransactionStatus may be used to indicate whether the scheduler should yield to other event processing
schedulers or not.
This method is always called once for each invocation to TransactionManager.beforeTransaction(TransactionStatus), even if
no events were processed at all.
Note that this method is called when a transactional batch was handled successfully, as well as when an error
occurred. Use the TransactionStatus object to find information about transaction status and (when failed)
the cause of the failure.
afterTransaction in interface TransactionManagertransactionStatus - The current status of the transactionTransactionManager.beforeTransaction(TransactionStatus),
TransactionStatuspublic void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager - the transaction manager that manages transactions with underlying data sources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||