|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionManager
org.axonframework.eventhandling.EventListener} interface that provides implementations the ability to do work at the start and end of a transaction.
Typically, this will involve opening database transactions or connecting to external systems.
| 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. |
| Method Detail |
|---|
void beforeTransaction(TransactionStatus transactionStatus)
TransactionStatus
may be used to set the maximum batch size for the current transaction.
transactionStatus - The current status of the transactionafterTransaction(TransactionStatus),
TransactionStatusvoid afterTransaction(TransactionStatus transactionStatus)
TransactionStatus 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 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.
transactionStatus - The current status of the transactionbeforeTransaction(TransactionStatus),
TransactionStatus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||