Package bitronix.tm.internal
Class XAResourceHolderState
java.lang.Object
bitronix.tm.internal.XAResourceHolderState
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.
- Author:
- lorban
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXAResourceHolderState(XAResourceHolderState resourceHolderState) XAResourceHolderState(XAResourceHolder resourceHolder, ResourceBean bean) -
Method Summary
-
Constructor Details
-
XAResourceHolderState
-
XAResourceHolderState
-
-
Method Details
-
getXid
-
setXid
- Throws:
BitronixSystemException
-
getXAResource
-
getXAResourceHolder
-
getTransactionTimeoutDate
-
setTransactionTimeoutDate
-
getUniqueName
-
getUseTmJoin
public boolean getUseTmJoin() -
getTwoPcOrderingPosition
public int getTwoPcOrderingPosition() -
getIgnoreRecoveryFailures
public boolean getIgnoreRecoveryFailures() -
isEnded
public boolean isEnded() -
isStarted
public boolean isStarted() -
isSuspended
public boolean isSuspended() -
isFailed
public boolean isFailed() -
end
- Throws:
XAException
-
start
- Throws:
XAException
-
hashCode
public int hashCode() -
equals
-
toString
-