public class XATerminator extends XATerminatorImple implements org.jboss.tm.JBossXATerminator
Constructor and Description |
---|
XATerminator() |
Modifier and Type | Method and Description |
---|---|
void |
cancelWork(javax.resource.spi.work.Work work,
Xid xid)
Remove the associated work from the transaction.
|
void |
endWork(javax.resource.spi.work.Work work,
Xid xid)
Disassociate the thread from the transaction and remove the
work from the transaction pool of workers.
|
void |
registerWork(javax.resource.spi.work.Work work,
Xid xid,
long timeout)
Register the unit of work with the specified transaction.
|
void |
startWork(javax.resource.spi.work.Work work,
Xid xid)
Associate the current thread with the specified transaction.
|
beforeCompletion, commit, doRecover, forget, prepare, recover, rollback
public void registerWork(javax.resource.spi.work.Work work, Xid xid, long timeout) throws javax.resource.spi.work.WorkCompletedException
registerWork
in interface org.jboss.tm.JBossXATerminator
work
- the work to associate with the transaction.xid
- the transaction within which the work will be performed.timeout
- the lifetime of the transaction.javax.resource.spi.work.WorkCompletedException
- thrown if the work cannot be associated with the transaction.public void startWork(javax.resource.spi.work.Work work, Xid xid) throws javax.resource.spi.work.WorkCompletedException
startWork
in interface org.jboss.tm.JBossXATerminator
work
- the Work to startxid
- the transaction to associate with the current thread.javax.resource.spi.work.WorkCompletedException
- thrown if there are any errors.public void endWork(javax.resource.spi.work.Work work, Xid xid)
endWork
in interface org.jboss.tm.JBossXATerminator
work
- the Work unit to remove.xid
- the transaction to remove the work from.public void cancelWork(javax.resource.spi.work.Work work, Xid xid)
cancelWork
in interface org.jboss.tm.JBossXATerminator
work
- the unit of work to remove.xid
- the transaction from which it should be disassociated.Copyright © 2021 JBoss by Red Hat. All rights reserved.