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)
SynchronizationRegistry
Synchronization
callback for this transaction.registerSynchronization
in interface SynchronizationRegistry
synchronization
- The synchronization callback to register.public void notifySynchronizationsBeforeTransactionCompletion()
SynchronizationRegistryImplementor
Synchronization.beforeCompletion()
call to each registered SynchronizationnotifySynchronizationsBeforeTransactionCompletion
in interface SynchronizationRegistryImplementor
public void notifySynchronizationsAfterTransactionCompletion(int status)
SynchronizationRegistryImplementor
Synchronization.afterCompletion(int)
call to each registered Synchronization. Will also
clear the registered Synchronizations after all have been notified.notifySynchronizationsAfterTransactionCompletion
in interface SynchronizationRegistryImplementor
status
- The transaction status, per Status
constantspublic void clearSynchronizations()
SynchronizationRegistryImplementor
SynchronizationRegistryImplementor.notifySynchronizationsAfterTransactionCompletion(int)
clearSynchronizations
in interface SynchronizationRegistryImplementor
Copyright © 2019 JBoss by Red Hat. All rights reserved.