public class JtaAfterCompletionSynchronization extends Object implements Synchronization
afterCommit
/
afterCompletion
callbacks of Spring TransactionSynchronization
objects callbacks after the outer JTA transaction has completed.
Applied when participating in an existing (non-Spring) JTA transaction.TransactionSynchronization.afterCommit()
,
TransactionSynchronization.afterCompletion(int)
Constructor and Description |
---|
JtaAfterCompletionSynchronization(List<TransactionSynchronization> synchronizations)
Create a new JtaAfterCompletionSynchronization for the given synchronization objects.
|
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int status) |
void |
beforeCompletion() |
public JtaAfterCompletionSynchronization(List<TransactionSynchronization> synchronizations)
synchronizations
- the List of TransactionSynchronization objectsTransactionSynchronization
public void beforeCompletion()
beforeCompletion
in interface Synchronization
public void afterCompletion(int status)
afterCompletion
in interface Synchronization