bitronix.tm.internal
Class XAResourceHolderState
java.lang.Object
bitronix.tm.internal.XAResourceHolderState
public class XAResourceHolderState
- extends java.lang.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
.
© Bitronix Software
- Author:
- lorban
- See Also:
ResourceBean
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
XAResourceHolderState
public XAResourceHolderState(XAResourceHolder resourceHolder,
ResourceBean bean)
XAResourceHolderState
public XAResourceHolderState(XAResourceHolderState resourceHolderState)
getXid
public BitronixXid getXid()
setXid
public void setXid(BitronixXid xid)
throws BitronixSystemException
- Throws:
BitronixSystemException
getXAResource
public javax.transaction.xa.XAResource getXAResource()
getXAResourceHolder
public XAResourceHolder getXAResourceHolder()
getTransactionTimeoutDate
public java.util.Date getTransactionTimeoutDate()
setTransactionTimeoutDate
public void setTransactionTimeoutDate(java.util.Date transactionTimeoutDate)
getUniqueName
public java.lang.String getUniqueName()
getUseTmJoin
public boolean getUseTmJoin()
getTwoPcOrderingPosition
public int getTwoPcOrderingPosition()
isEnded
public boolean isEnded()
isStarted
public boolean isStarted()
isSuspended
public boolean isSuspended()
end
public void end(int flags)
throws javax.transaction.xa.XAException
- Throws:
javax.transaction.xa.XAException
start
public void start(int flags)
throws javax.transaction.xa.XAException
- Throws:
javax.transaction.xa.XAException
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object