public class Delay extends java.lang.Object implements TransactionParticipant, Configurable
Constructor and Description |
---|
Delay() |
Modifier and Type | Method and Description |
---|---|
void |
abort(long id,
java.io.Serializable context)
Called by TransactionManager upon transaction commit.
|
void |
commit(long id,
java.io.Serializable context)
Called by TransactionManager upon transaction commit.
|
int |
prepare(long id,
java.io.Serializable context)
Called by TransactionManager in preparation for a transaction
|
void |
setConfiguration(Configuration cfg) |
public int prepare(long id, java.io.Serializable context)
TransactionParticipant
prepare
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextpublic void commit(long id, java.io.Serializable context)
TransactionParticipant
commit
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextpublic void abort(long id, java.io.Serializable context)
TransactionParticipant
abort
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextpublic void setConfiguration(Configuration cfg) throws ConfigurationException
setConfiguration
in interface Configurable
cfg
- Configuration objectConfigurationException