Package com.swiftmq.impl.xa.standard
Class XALiveContextImpl
java.lang.Object
com.swiftmq.impl.xa.standard.XAContextImpl
com.swiftmq.impl.xa.standard.XALiveContextImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTransaction
(int id, String queueName, QueueTransaction queueTransaction) void
close()
long
commit
(boolean onePhase) boolean
void
prepare()
int
void
rollback()
void
setPrepared
(boolean prepared) toString()
void
unregister
(int id, boolean rollbackOnly) Methods inherited from class com.swiftmq.impl.xa.standard.XAContextImpl
getXid, incCount, isRecovered, removeUsageEntity, setRecovered
-
Constructor Details
-
XALiveContextImpl
-
-
Method Details
-
setPrepared
public void setPrepared(boolean prepared) -
isPrepared
public boolean isPrepared() -
register
- Throws:
XAContextException
-
addTransaction
public void addTransaction(int id, String queueName, QueueTransaction queueTransaction) throws XAContextException - Throws:
XAContextException
-
unregister
public void unregister(int id, boolean rollbackOnly) throws XAContextException - Throws:
XAContextException
-
prepare
public void prepare() throws XAContextException- Throws:
XAContextException
-
commit
public long commit(boolean onePhase) throws XAContextException - Throws:
XAContextException
-
rollback
public void rollback() throws XAContextException- Throws:
XAContextException
-
close
public void close() -
toString
-