public class TransactionAssistanceXAResource extends Object
XAResource used by the transaction assistance JCA Adapter to bind callbacks
into transactions. Used by Java EE.| Modifier and Type | Field and Description |
|---|---|
protected static FileFilter |
executeFilter
If tracking state internally, then this filter finds
files related to incomplete transactions
|
protected static Logger |
log |
protected int |
timeout
default timeout, as well as that set by the system
|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
TransactionAssistanceXAResource(ManagedTransactionAssistance conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase) |
void |
end(Xid xid,
int flags) |
void |
forget(Xid xid) |
protected long |
getMinAgeOfTransactionBeforeRelevantForRecovery() |
protected File |
getRecoveryStatePersistenceDirectory() |
int |
getTransactionTimeout() |
protected UnderlyingConnection |
getUnderlyingConnection() |
protected boolean |
isHandleRecoveryInternally() |
boolean |
isSameRM(XAResource xares) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int timeout) |
void |
start(Xid xid,
int flags) |
protected static FileFilter executeFilter
protected static final Logger log
protected int timeout
public TransactionAssistanceXAResource(ManagedTransactionAssistance conn)
protected long getMinAgeOfTransactionBeforeRelevantForRecovery()
protected File getRecoveryStatePersistenceDirectory()
protected boolean isHandleRecoveryInternally()
protected UnderlyingConnection getUnderlyingConnection()
public boolean isSameRM(XAResource xares) throws XAException
XAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
end in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int timeout)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionCopyright © 2015 Ant Kutschera. All rights reserved.