jPOS 1.6.5 API Documentation

org.jpos.transaction
Interface AbortParticipant

All Superinterfaces:
TransactionConstants, TransactionParticipant
All Known Implementing Classes:
BSHGroupSelector, BSHTransactionParticipant, Debug, Join, Trace

public interface AbortParticipant
extends TransactionParticipant

2 phase commit participant

Since:
1.4.7
Author:
apr

Field Summary
 
Fields inherited from interface org.jpos.transaction.TransactionConstants
ABORTED, NO_JOIN, PAUSE, PREPARED, READONLY, RETRY
 
Method Summary
 int prepareForAbort(long id, java.io.Serializable context)
          Called by TransactionManager in preparation for a transaction that is known to abort.
 
Methods inherited from interface org.jpos.transaction.TransactionParticipant
abort, commit, prepare
 

Method Detail

prepareForAbort

int prepareForAbort(long id,
                    java.io.Serializable context)
Called by TransactionManager in preparation for a transaction that is known to abort.

Parameters:
id - the Transaction identifier
context - transaction context
Returns:
0 [| NO_JOIN | READONLY)

jPOS.org