@Deprecated public class DefaultXASession extends Object implements XAResource
Modifier and Type | Field and Description |
---|---|
protected AbstractTransactionContext |
localContext
Deprecated.
|
protected Xid |
localXid
Deprecated.
|
protected Log |
logger
Deprecated.
logger used by this class
|
protected AbstractXAResourceManager |
resourceManager
Deprecated.
|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
DefaultXASession(AbstractXAResourceManager resourceManager)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
begin()
Deprecated.
|
void |
commit()
Deprecated.
|
void |
commit(Xid xid,
boolean onePhase)
Deprecated.
|
void |
end(Xid xid,
int flags)
Deprecated.
|
void |
forget(Xid xid)
Deprecated.
|
Object |
getResourceManager()
Deprecated.
|
int |
getTransactionTimeout()
Deprecated.
|
XAResource |
getXAResource()
Deprecated.
|
boolean |
isSameRM(XAResource xares)
Deprecated.
|
int |
prepare(Xid xid)
Deprecated.
|
Xid[] |
recover(int flag)
Deprecated.
|
void |
rollback()
Deprecated.
|
void |
rollback(Xid xid)
Deprecated.
|
boolean |
setTransactionTimeout(int timeout)
Deprecated.
|
void |
start(Xid xid,
int flags)
Deprecated.
|
protected transient Log logger
protected AbstractTransactionContext localContext
protected Xid localXid
protected AbstractXAResourceManager resourceManager
public DefaultXASession(AbstractXAResourceManager resourceManager)
public XAResource getXAResource()
public Object getResourceManager()
public void begin() throws ResourceManagerException
ResourceManagerException
public void commit() throws ResourceManagerException
ResourceManagerException
public void rollback() throws ResourceManagerException
ResourceManagerException
public boolean isSameRM(XAResource xares) throws XAException
isSameRM
in interface XAResource
XAException
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
public void start(Xid xid, int flags) throws XAException
start
in interface XAResource
XAException
public void end(Xid xid, int flags) throws XAException
end
in interface XAResource
XAException
public void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean setTransactionTimeout(int timeout) throws XAException
setTransactionTimeout
in interface XAResource
XAException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.