javax.transaction.xa.XAResource
public final class XAResourceImpl
extends java.lang.Object
implements javax.transaction.xa.XAResource
XAResource
implementation for an XAResourceSource
.
Provides the XA interface for starting transactions, participating
in two phase commit and suspending/resuming transactions against
the XA source. Transactions are shared across all XA sources that
map to the same cache engine.TransactionContext
,
XAResourceSource
Constructor | Description |
---|---|
XAResourceImpl(LockEngine engine,
XAResourceSource xaSource) |
Modifier and Type | Method | Description |
---|---|---|
void |
commit(javax.transaction.xa.Xid xid,
boolean onePhase) |
|
void |
end(javax.transaction.xa.Xid xid,
int flags) |
|
void |
forget(javax.transaction.xa.Xid xid) |
|
int |
getTransactionTimeout() |
|
boolean |
isSameRM(javax.transaction.xa.XAResource xaRes) |
|
int |
prepare(javax.transaction.xa.Xid xid) |
|
javax.transaction.xa.Xid[] |
recover(int flags) |
|
void |
rollback(javax.transaction.xa.Xid xid) |
|
boolean |
setTransactionTimeout(int timeout) |
|
void |
start(javax.transaction.xa.Xid xid,
int flags) |
public XAResourceImpl(LockEngine engine, XAResourceSource xaSource)
public void start(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
start
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void end(javax.transaction.xa.Xid xid, int flags) throws javax.transaction.xa.XAException
end
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
forget
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
prepare
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void commit(javax.transaction.xa.Xid xid, boolean onePhase) throws javax.transaction.xa.XAException
commit
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
rollback
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public javax.transaction.xa.Xid[] recover(int flags) throws javax.transaction.xa.XAException
recover
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public boolean isSameRM(javax.transaction.xa.XAResource xaRes) throws javax.transaction.xa.XAException
isSameRM
in interface javax.transaction.xa.XAResource
javax.transaction.xa.XAException
public boolean setTransactionTimeout(int timeout)
setTransactionTimeout
in interface javax.transaction.xa.XAResource
public int getTransactionTimeout()
getTransactionTimeout
in interface javax.transaction.xa.XAResource
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com