public class SynchronizationRegistryStandardImpl extends Object implements SynchronizationRegistryImplementor
| Constructor and Description |
|---|
SynchronizationRegistryStandardImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSynchronizations()
Clears all synchronizations from this registry.
|
int |
getNumberOfRegisteredSynchronizations()
Intended for test access
|
void |
notifySynchronizationsAfterTransactionCompletion(int status)
Delegates the
Synchronization.afterCompletion(int) call to each registered Synchronization. |
void |
notifySynchronizationsBeforeTransactionCompletion()
Delegates the
Synchronization.beforeCompletion() call to each registered Synchronization |
void |
registerSynchronization(Synchronization synchronization)
Register a
Synchronization callback for this transaction. |
public int getNumberOfRegisteredSynchronizations()
public void registerSynchronization(Synchronization synchronization)
SynchronizationRegistrySynchronization callback for this transaction.registerSynchronization in interface SynchronizationRegistrysynchronization - The synchronization callback to register.public void notifySynchronizationsBeforeTransactionCompletion()
SynchronizationRegistryImplementorSynchronization.beforeCompletion() call to each registered SynchronizationnotifySynchronizationsBeforeTransactionCompletion in interface SynchronizationRegistryImplementorpublic void notifySynchronizationsAfterTransactionCompletion(int status)
SynchronizationRegistryImplementorSynchronization.afterCompletion(int) call to each registered Synchronization. Will also
clear the registered Synchronizations after all have been notified.notifySynchronizationsAfterTransactionCompletion in interface SynchronizationRegistryImplementorstatus - The transaction status, per Status constantspublic void clearSynchronizations()
SynchronizationRegistryImplementorSynchronizationRegistryImplementor.notifySynchronizationsAfterTransactionCompletion(int)clearSynchronizations in interface SynchronizationRegistryImplementorCopyright © 2017 JBoss by Red Hat. All rights reserved.