|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extends XATerminator to include registration calls
Method Summary | |
void |
cancelWork(Work (src) work,
Xid (src) xid)
Invoked when the work fails |
void |
endWork(Work (src) work,
Xid (src) xid)
Invoked when transaction inflow work ends |
void |
registerWork(Work (src) work,
Xid (src) xid,
long timeout)
Invoked for transaction inflow of work |
void |
startWork(Work (src) work,
Xid (src) xid)
Invoked for transaction inflow of work |
Methods inherited from interface javax.resource.spi.XATerminator (src) |
commit, forget, prepare, recover, rollback |
Method Detail |
public void registerWork(Work (src) work, Xid (src) xid, long timeout) throws WorkCompletedException (src)
work
- the work startingxid
- the xid of the worktimeout
- the transaction timeout
WorkCompletedException (src)
- with error code WorkException.TX_CONCURRENT_WORK_DISALLOWED
when work is already present for the xid or whose completion is in progress, only
the global part of the xid must be used for this check.public void startWork(Work (src) work, Xid (src) xid) throws WorkCompletedException (src)
work
- the work startingxid
- the xid of the work
WorkCompletedException (src)
- with error code WorkException.TX_RECREATE_FAILED if it is unable to recreate the transaction contextpublic void endWork(Work (src) work, Xid (src) xid)
work
- the work endingxid
- the xid of the workpublic void cancelWork(Work (src) work, Xid (src) xid)
work
- the work endingxid
- the xid of the work
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |