public class DummyXaResource extends Object implements XAResource, QueueSession
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
DummyXaResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
void |
commit(Xid xid,
boolean b) |
void |
end(Xid xid,
int i) |
void |
forget(Xid xid) |
Queue |
getQueue(String name) |
int |
getTransactionTimeout() |
boolean |
isCommitStarted() |
boolean |
isPrepared() |
boolean |
isRollbackExecuted() |
boolean |
isSameRM(XAResource xaResource) |
boolean |
isTxEnded() |
boolean |
isTxStarted() |
int |
prepare(Xid xid) |
Xid[] |
recover(int i) |
void |
rollback() |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int i) |
void |
start(Xid xid,
int i) |
public void commit(Xid xid, boolean b) throws XAException
commit in interface XAResourceXAExceptionpublic void end(Xid xid, int i) throws XAException
end in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xaResource) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int i) throws XAException
recover in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int i)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int i) throws XAException
start in interface XAResourceXAExceptionpublic Queue getQueue(String name)
getQueue in interface QueueSessionpublic void begin()
throws ResourceManagerException
begin in interface QueueSessionResourceManagerExceptionpublic void commit()
throws ResourceManagerException
commit in interface QueueSessionResourceManagerExceptionpublic void rollback()
throws ResourceManagerException
rollback in interface QueueSessionResourceManagerExceptionpublic boolean isCommitStarted()
public boolean isPrepared()
public boolean isTxEnded()
public boolean isRollbackExecuted()
public boolean isTxStarted()
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.