public class CheckPoint extends java.lang.Object implements TransactionParticipant, Configurable
Constructor and Description |
---|
CheckPoint() |
Modifier and Type | Method and 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 transaction
|
void |
setConfiguration(Configuration cfg) |
public int prepare(long id, java.io.Serializable o)
TransactionParticipant
prepare
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic void commit(long id, java.io.Serializable o)
TransactionParticipant
commit
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic void abort(long id, java.io.Serializable o)
TransactionParticipant
abort
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic void setConfiguration(Configuration cfg)
setConfiguration
in interface Configurable
cfg
- Configuration object