public class CleanupSynchronization extends Object implements Synchronization
Constructor and Description |
---|
CleanupSynchronization(String cleanupId,
RegistrarImple theRegistrar) |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int status)
The transaction that the instance is enrolled with has completed and
the state in which is completed is passed as a parameter.
|
void |
beforeCompletion()
The transaction that the instance is enrolled with is about to
commit.
|
public CleanupSynchronization(String cleanupId, RegistrarImple theRegistrar)
public void beforeCompletion() throws SystemException
Synchronization
beforeCompletion
in interface Synchronization
SystemException
- Thrown if any error occurs. This will cause
the transaction to roll back.public void afterCompletion(int status) throws SystemException
Synchronization
afterCompletion
in interface Synchronization
status
- The state in which the transaction completed.SystemException
- Thrown if any error occurs. This has no
affect on the outcome of the transaction.Copyright © 2017 JBoss by Red Hat. All rights reserved.