com.arjuna.mw.wscf.model.twophase.participants
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
 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.
 

Method Detail

beforeCompletion

void beforeCompletion()
                      throws SystemException
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

void afterCompletion(int status)
                     throws SystemException
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.


Copyright © 2012. All Rights Reserved.