Package org.jpos.transaction.participant
Class Pause
- java.lang.Object
-
- org.jpos.transaction.participant.Pause
-
- All Implemented Interfaces:
Configurable
,TransactionConstants
,TransactionParticipant
public class Pause extends java.lang.Object implements TransactionParticipant, Configurable
-
-
Constructor Summary
Constructors Constructor Description Pause()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
prepare(long id, java.io.Serializable context)
Called by TransactionManager in preparation for a transactionvoid
setConfiguration(Configuration cfg)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpos.transaction.TransactionParticipant
abort, commit
-
-
-
-
Constructor Detail
-
Pause
public Pause()
-
-
Method Detail
-
prepare
public int prepare(long id, java.io.Serializable context)
Description copied from interface:TransactionParticipant
Called by TransactionManager in preparation for a transaction- Specified by:
prepare
in interfaceTransactionParticipant
- Parameters:
id
- the Transaction identifiercontext
- transaction context- Returns:
- PREPARED or ABORTED (| NO_JOIN | READONLY)
-
setConfiguration
public void setConfiguration(Configuration cfg)
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
- Configuration object
-
-