javax.transaction.xa.XAResourcepublic 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.XAResourcejavax.transaction.xa.XAExceptionpublic void end(javax.transaction.xa.Xid xid,
int flags)
throws javax.transaction.xa.XAException
end in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic void forget(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
forget in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic int prepare(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
prepare in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic void commit(javax.transaction.xa.Xid xid,
boolean onePhase)
throws javax.transaction.xa.XAException
commit in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic void rollback(javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
rollback in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic javax.transaction.xa.Xid[] recover(int flags)
throws javax.transaction.xa.XAException
recover in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic boolean isSameRM(javax.transaction.xa.XAResource xaRes)
throws javax.transaction.xa.XAException
isSameRM in interface javax.transaction.xa.XAResourcejavax.transaction.xa.XAExceptionpublic boolean setTransactionTimeout(int timeout)
setTransactionTimeout in interface javax.transaction.xa.XAResourcepublic int getTransactionTimeout()
getTransactionTimeout in interface javax.transaction.xa.XAResourceIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com