public class VolatileTwoPhaseCommitParticipant extends Object implements Synchronization
| Constructor and Description |
|---|
VolatileTwoPhaseCommitParticipant(Volatile2PCParticipant resource) |
| 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 VolatileTwoPhaseCommitParticipant(Volatile2PCParticipant resource)
public void beforeCompletion()
throws SystemException
beforeCompletion in interface SynchronizationSystemException - Thrown if any error occurs. This will cause the
transaction to roll back.public void afterCompletion(int status)
throws SystemException
afterCompletion in interface SynchronizationCompletionStatus - cs 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.