Class DummyXaResource
java.lang.Object
org.mule.test.transactional.connection.DummyXaResource
- All Implemented Interfaces:
XAResource,org.mule.runtime.core.api.util.queue.QueueSession
public class DummyXaResource
extends Object
implements XAResource, org.mule.runtime.core.api.util.queue.QueueSession
-
Field Summary
FieldsFields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voidcommit()voidvoidvoidorg.mule.runtime.core.api.util.queue.QueueintbooleanbooleanbooleanbooleanisSameRM(XAResource xaResource) booleanbooleanintXid[]recover(int i) voidrollback()voidbooleansetTransactionTimeout(int i) void
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
DummyXaResource
public DummyXaResource()
-
-
Method Details
-
commit
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
end
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
prepare
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
recover
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
rollback
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
getQueue
- Specified by:
getQueuein interfaceorg.mule.runtime.core.api.util.queue.QueueSession
-
begin
public void begin() throws org.mule.runtime.core.api.transaction.xa.ResourceManagerException- Specified by:
beginin interfaceorg.mule.runtime.core.api.util.queue.QueueSession- Throws:
org.mule.runtime.core.api.transaction.xa.ResourceManagerException
-
commit
public void commit() throws org.mule.runtime.core.api.transaction.xa.ResourceManagerException- Specified by:
commitin interfaceorg.mule.runtime.core.api.util.queue.QueueSession- Throws:
org.mule.runtime.core.api.transaction.xa.ResourceManagerException
-
rollback
public void rollback() throws org.mule.runtime.core.api.transaction.xa.ResourceManagerException- Specified by:
rollbackin interfaceorg.mule.runtime.core.api.util.queue.QueueSession- Throws:
org.mule.runtime.core.api.transaction.xa.ResourceManagerException
-
isCommitStarted
public boolean isCommitStarted() -
isPrepared
public boolean isPrepared() -
isTxEnded
public boolean isTxEnded() -
isRollbackExecuted
public boolean isRollbackExecuted() -
isTxStarted
public boolean isTxStarted()
-