public class XAResourceHolderState extends Object
XAResourceHolder state container.
Instances are kept in the transaction and bound to / unbound from the XAResourceHolder as the
resource participates in different transactions. A XAResourceHolder without XAResourceHolderState
is considered to be in local transaction mode.
Objects of this class also expose resource specific configuration like the unique resource name.
The XAResource state during a transaction participation is also contained: assigned XID, transaction
start / end state...
There is exactly one XAResourceHolderState object per XAResourceHolder per
Transaction.
ResourceBean| Constructor and Description |
|---|
XAResourceHolderState(XAResourceHolder resourceHolder,
ResourceBean bean) |
XAResourceHolderState(XAResourceHolderState resourceHolderState) |
| Modifier and Type | Method and Description |
|---|---|
void |
end(int flags) |
boolean |
equals(Object obj) |
boolean |
getIgnoreRecoveryFailures() |
Date |
getTransactionTimeoutDate() |
int |
getTwoPcOrderingPosition() |
String |
getUniqueName() |
boolean |
getUseTmJoin() |
XAResource |
getXAResource() |
XAResourceHolder |
getXAResourceHolder() |
BitronixXid |
getXid() |
int |
hashCode() |
boolean |
isEnded() |
boolean |
isFailed() |
boolean |
isStarted() |
boolean |
isSuspended() |
void |
setTransactionTimeoutDate(Date transactionTimeoutDate) |
void |
setXid(BitronixXid xid) |
void |
start(int flags) |
String |
toString() |
public XAResourceHolderState(XAResourceHolder resourceHolder, ResourceBean bean)
public XAResourceHolderState(XAResourceHolderState resourceHolderState)
public BitronixXid getXid()
public void setXid(BitronixXid xid) throws BitronixSystemException
BitronixSystemExceptionpublic XAResource getXAResource()
public XAResourceHolder getXAResourceHolder()
public Date getTransactionTimeoutDate()
public void setTransactionTimeoutDate(Date transactionTimeoutDate)
public String getUniqueName()
public boolean getUseTmJoin()
public int getTwoPcOrderingPosition()
public boolean getIgnoreRecoveryFailures()
public boolean isEnded()
public boolean isStarted()
public boolean isSuspended()
public boolean isFailed()
public void end(int flags)
throws XAException
XAExceptionpublic void start(int flags)
throws XAException
XAExceptionCopyright © 2006-2016 Bitronix Software. All Rights Reserved.