public class SendResponse extends java.lang.Object implements AbortParticipant, Configurable
Modifier and Type | Class and Description |
---|---|
static class |
SendResponse.HeaderStrategy |
Constructor and Description |
---|
SendResponse() |
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) |
void |
setTransactionManager(TransactionManager tm) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareForAbort
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
public void setTransactionManager(TransactionManager tm)