Class InDoubtTxInfo
java.lang.Object
org.infinispan.transaction.xa.recovery.InDoubtTxInfo
An object describing in doubt transaction's state. Needed by the transaction recovery process, for displaying
transactions to the user.
- Since:
- 5.0
- Author:
- Mircea Markus
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInDoubtTxInfo(XidImpl xid, long internalId) InDoubtTxInfo(XidImpl xid, long internalId, int status) -
Method Summary
Modifier and TypeMethodDescriptionvoidAddsowneras a node where this transaction information is maintained.booleanlongintThe value represent transaction's state as described by thestatusfield.getXid()inthashCode()booleanisLocal()voidsetLocal(boolean local) Setstrueif this transaction information is stored locally.voidsetStatus(int status) Sets the transaction's state.toString()
-
Field Details
-
EXTERNALIZER
-
-
Constructor Details
-
InDoubtTxInfo
-
InDoubtTxInfo
-
-
Method Details
-
getXid
- Returns:
- The transaction's
XidImpl.
-
getInternalId
public long getInternalId()- Returns:
- The unique long object associated to
XidImpl. It makes possible the invocation of recovery operations.
-
getStatus
public int getStatus()The value represent transaction's state as described by thestatusfield.- Returns:
- The
Statusor -1 if not set.
-
setStatus
public void setStatus(int status) Sets the transaction's state. -
getOwners
- Returns:
- The set of nodes where this transaction information is maintained.
-
addOwner
Addsowneras a node where this transaction information is maintained. -
isLocal
public boolean isLocal()- Returns:
Trueif the transaction information is also present on this node.
-
setLocal
public void setLocal(boolean local) Setstrueif this transaction information is stored locally. -
equals
-
hashCode
public int hashCode() -
toString
-