org.jpos.transaction.participant
Class Delay

java.lang.Object
  extended by org.jpos.transaction.participant.Delay
All Implemented Interfaces:
Configurable, TransactionConstants, TransactionParticipant

public class Delay
extends Object
implements TransactionParticipant, Configurable


Field Summary
 
Fields inherited from interface org.jpos.transaction.TransactionConstants
ABORTED, NO_JOIN, PAUSE, PREPARED, READONLY, RETRY
 
Constructor Summary
Delay()
           
 
Method Summary
 void abort(long id, Serializable context)
          Called by TransactionManager upon transaction commit.
 void commit(long id, Serializable context)
          Called by TransactionManager upon transaction commit.
 int prepare(long id, Serializable context)
          Called by TransactionManager in preparation for a transaction
 void setConfiguration(Configuration cfg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delay

public Delay()
Method Detail

prepare

public int prepare(long id,
                   Serializable context)
Description copied from interface: TransactionParticipant
Called by TransactionManager in preparation for a transaction

Specified by:
prepare in interface TransactionParticipant
Parameters:
id - the Transaction identifier
context - transaction context
Returns:
PREPARED or ABORTED (| NO_JOIN | READONLY)

commit

public void commit(long id,
                   Serializable context)
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 interface TransactionParticipant
Parameters:
id - the Transaction identifier
context - transaction context

abort

public void abort(long id,
                  Serializable context)
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 interface TransactionParticipant
Parameters:
id - the Transaction identifier
context - transaction context

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
Parameters:
cfg - Configuration object
Throws:
ConfigurationException


Copyright © 1998-2012 jPOS.org. All Rights Reserved.