Package org.jpos.transaction.participant
Class Forward
- java.lang.Object
-
- org.jpos.transaction.participant.Forward
-
- All Implemented Interfaces:
Configurable
,TransactionConstants
,TransactionParticipant
public class Forward extends java.lang.Object implements TransactionParticipant, Configurable
-
-
Constructor Summary
Constructors Constructor Description Forward()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort(long id, java.io.Serializable o)
Called by TransactionManager upon transaction commit.void
commit(long id, java.io.Serializable o)
Called by TransactionManager upon transaction commit.int
prepare(long id, java.io.Serializable o)
Called by TransactionManager in preparation for a transactionvoid
setConfiguration(Configuration cfg)
-
-
-
Constructor Detail
-
Forward
public Forward()
-
-
Method Detail
-
prepare
public int prepare(long id, java.io.Serializable o)
Description copied from interface:TransactionParticipant
Called by TransactionManager in preparation for a transaction- Specified by:
prepare
in interfaceTransactionParticipant
- Parameters:
id
- the Transaction identifiero
- transaction context- Returns:
- PREPARED or ABORTED (| NO_JOIN | READONLY)
-
commit
public void commit(long id, java.io.Serializable o)
Description copied from interface:TransactionParticipant
Called by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)- Specified by:
commit
in interfaceTransactionParticipant
- Parameters:
id
- the Transaction identifiero
- transaction context
-
abort
public void abort(long id, java.io.Serializable o)
Description copied from interface:TransactionParticipant
Called by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)- Specified by:
abort
in interfaceTransactionParticipant
- Parameters:
id
- the Transaction identifiero
- transaction context
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
- Configuration object- Throws:
ConfigurationException
-
-