Class Debug
java.lang.Object
org.jpos.util.Log
org.jpos.transaction.participant.Debug
- All Implemented Interfaces:
AbortParticipant, TransactionConstants, TransactionParticipant, LogSource
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort(long id, Serializable o) Called by TransactionManager upon transaction commit.voidcommit(long id, Serializable o) Called by TransactionManager upon transaction commit.intprepare(long id, Serializable o) Called by TransactionManager in preparation for a transactionintprepareForAbort(long id, Serializable o) Called by TransactionManager in preparation for a transaction that is known to abort.Methods inherited from class Log
createDebug, createDebug, createError, createError, createFatal, createFatal, createInfo, createInfo, createLogEvent, createLogEvent, createTrace, createTrace, createWarn, createWarn, debug, debug, error, error, fatal, fatal, getLog, getLogger, getRealm, info, info, setLogger, setLogger, setRealm, trace, trace, warn, warn
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
prepare
Description copied from interface:TransactionParticipantCalled by TransactionManager in preparation for a transaction- Specified by:
preparein interfaceTransactionParticipant- Parameters:
id- the Transaction identifiero- transaction context- Returns:
- PREPARED or ABORTED (| NO_JOIN | READONLY)
-
commit
Description copied from interface:TransactionParticipantCalled by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)- Specified by:
commitin interfaceTransactionParticipant- Parameters:
id- the Transaction identifiero- transaction context
-
abort
Description copied from interface:TransactionParticipantCalled by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)- Specified by:
abortin interfaceTransactionParticipant- Parameters:
id- the Transaction identifiero- transaction context
-
prepareForAbort
Description copied from interface:AbortParticipantCalled by TransactionManager in preparation for a transaction that is known to abort.- Specified by:
prepareForAbortin interfaceAbortParticipant- Parameters:
id- the Transaction identifiero- transaction context- Returns:
- 0 [| NO_JOIN | READONLY)
-