Interface Synchronization
public interface Synchronization
This is the interface that all synchronization participants must define.
- Since:
- 1.0.
- Version:
- $Id: Synchronization.java,v 1.2 2005/05/19 12:13:26 nmcl Exp $
- Author:
- Mark Little (mark.little@arjuna.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
The transaction that the instance is enrolled with is about to commit.
-
Method Details
-
beforeCompletion
The transaction that the instance is enrolled with is about to commit.- Throws:
SystemException
- Thrown if any error occurs. This will cause the transaction to roll back.
-
afterCompletion
The transaction that the instance is enrolled with has completed and the state in which is completed is passed as a parameter.- Parameters:
status
- The state in which the transaction completed.- Throws:
SystemException
- Thrown if any error occurs. This has no affect on the outcome of the transaction.
-