
public class XATerminatorImpl extends Object implements org.jboss.jca.core.spi.transaction.xa.XATerminator, Serializable
| Constructor and Description |
|---|
XATerminatorImpl()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelWork(javax.resource.spi.work.Work work,
Xid xid)
Invoked when the work fails
|
void |
commit(Xid xid,
boolean onePhase) |
void |
endWork(javax.resource.spi.work.Work work,
Xid xid)
Invoked when transaction inflow work ends
|
void |
forget(Xid xid) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
registerWork(javax.resource.spi.work.Work work,
Xid xid,
long timeout)
Invoked for transaction inflow of work
|
void |
rollback(Xid xid) |
void |
startWork(javax.resource.spi.work.Work work,
Xid xid)
Invoked for transaction inflow of work
|
public void commit(Xid xid, boolean onePhase) throws XAException
commit in interface javax.resource.spi.XATerminatorXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface javax.resource.spi.XATerminatorXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface javax.resource.spi.XATerminatorXAExceptionpublic Xid[] recover(int flag) throws XAException
recover in interface javax.resource.spi.XATerminatorXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface javax.resource.spi.XATerminatorXAExceptionpublic void registerWork(javax.resource.spi.work.Work work,
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.public void startWork(javax.resource.spi.work.Work work,
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 contextpublic void endWork(javax.resource.spi.work.Work work,
Xid xid)
work - The work endingxid - The xid of the workpublic void cancelWork(javax.resource.spi.work.Work work,
Xid xid)
work - The work endingxid - The xid of the workCopyright © 2013 IronJacamar (http://www.ironjacamar.org)