public class HornetQXAResourceWrapper extends Object implements XAResource, SessionFailureListener
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
HornetQXAResourceWrapper(XARecoveryConfig... xaRecoveryConfigs) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeReconnect(HornetQException me) |
protected XAException |
check(XAException e)
Check whether an XAException is fatal.
|
void |
close()
Close the connection
|
void |
commit(Xid xid,
boolean onePhase) |
protected XAResource |
connect()
Connect to the server if not already done so
|
void |
connectionFailed(HornetQException me,
boolean failedOver) |
void |
end(Xid xid,
int flags) |
protected void |
finalize() |
void |
forget(Xid xid) |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource xaRes) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int seconds) |
void |
start(Xid xid,
int flags) |
String |
toString() |
public HornetQXAResourceWrapper(XARecoveryConfig... xaRecoveryConfigs)
public Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xaRes) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
end in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int seconds)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void connectionFailed(HornetQException me, boolean failedOver)
connectionFailed in interface org.hornetq.core.remoting.FailureListenerpublic void beforeReconnect(HornetQException me)
beforeReconnect in interface SessionFailureListenerprotected XAResource connect() throws Exception
Exception - for any problempublic void close()
protected XAException check(XAException e) throws XAException
e - the xa exceptionXAException - alwaysCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.