|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceTransaction
The notion of a local transaction executed on a resource. Serves as a handle towards the transaction management module.
| Method Summary | |
|---|---|
void |
addCompensationContext(Dictionary context)
Add a compensation context for this resourcetx. |
void |
addHeuristicMessage(HeuristicMessage mesg)
Add heuristic resolution information. |
Dictionary |
getCompensationContext()
Get the compensation information. |
HeuristicMessage[] |
getHeuristicMessages()
Get heuristic context info. |
String |
getTid()
Get identifier for this tx. |
void |
resume()
Resume a suspended tx. |
void |
suspend()
Suspend the resourcetransaction, so that underlying resources can be used for a next (sibling) invocation. |
| Method Detail |
|---|
String getTid()
void addCompensationContext(Dictionary context)
throws IllegalStateException
context - The compensation context.
IllegalStateException - If no longer active.
void addHeuristicMessage(HeuristicMessage mesg)
throws IllegalStateException
mesg - The heuristic message.
IllegalStateException - If no longer active.HeuristicMessage[] getHeuristicMessages()
Dictionary getCompensationContext()
void suspend()
throws IllegalStateException,
ResourceException
IllegalStateException - If wrong state.
ResourceException
void resume()
throws IllegalStateException,
ResourceException
IllegalStateException - If not right state.
ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||