Package org.jpos.transaction
Interface ContextRecovery
-
public interface ContextRecovery
ContextRecovery can be implemented by a TransactionParticipant in order to customize the activation of a persisted context.- Since:
- 1.4.7
- See Also:
TransactionParticipant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.Serializable
recover(long id, java.io.Serializable context, boolean commit)
Give participant the chance to "activate" a previously persisted context.
-
-
-
Method Detail
-
recover
java.io.Serializable recover(long id, java.io.Serializable context, boolean commit)
Give participant the chance to "activate" a previously persisted context.- Parameters:
id
- the Transaction identifiercontext
- transaction context (as persisted by TransactionManager)commit
- true if transaction is committing- Returns:
- activated context
-
-