public interface XATerminator
extends javax.resource.spi.XATerminator
Modifier and Type | Method and Description |
---|---|
void |
cancelWork(javax.resource.spi.work.Work work,
javax.transaction.xa.Xid xid)
Invoked when the work fails
|
void |
endWork(javax.resource.spi.work.Work work,
javax.transaction.xa.Xid xid)
Invoked when transaction inflow work ends
|
void |
registerWork(javax.resource.spi.work.Work work,
javax.transaction.xa.Xid xid,
long timeout)
Invoked for transaction inflow of work
|
void |
startWork(javax.resource.spi.work.Work work,
javax.transaction.xa.Xid xid)
Invoked for transaction inflow of work
|
void registerWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid, long timeout) throws javax.resource.spi.work.WorkCompletedException
work
- The work startingxid
- The xid of the worktimeout
- The transaction timeoutjavax.resource.spi.work.WorkCompletedException
- 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.void startWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid) throws javax.resource.spi.work.WorkCompletedException
work
- The work startingxid
- The xid of the workjavax.resource.spi.work.WorkCompletedException
- With error code WorkException.TX_RECREATE_FAILED if it is unable
to recreate the transaction contextvoid endWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid)
work
- The work endingxid
- The xid of the workvoid cancelWork(javax.resource.spi.work.Work work, javax.transaction.xa.Xid xid)
work
- The work endingxid
- The xid of the workCopyright © 2013 IronJacamar (http://www.ironjacamar.org)