Class InDoubtTxInfo
- java.lang.Object
-
- org.infinispan.transaction.xa.recovery.InDoubtTxInfo
-
public class InDoubtTxInfo extends Object
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 Modifier and Type Field Description static org.infinispan.commons.marshall.AbstractExternalizer<InDoubtTxInfo>EXTERNALIZER
-
Constructor Summary
Constructors Constructor Description InDoubtTxInfo(org.infinispan.commons.tx.XidImpl xid, long internalId)InDoubtTxInfo(org.infinispan.commons.tx.XidImpl xid, long internalId, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOwner(Address owner)Addsowneras a node where this transaction information is maintained.booleanequals(Object o)longgetInternalId()Set<Address>getOwners()intgetStatus()The value represent transaction's state as described by thestatusfield.org.infinispan.commons.tx.XidImplgetXid()inthashCode()booleanisLocal()voidsetLocal(boolean local)Setstrueif this transaction information is stored locally.voidsetStatus(int status)Sets the transaction's state.StringtoString()
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AbstractExternalizer<InDoubtTxInfo> EXTERNALIZER
-
-
Method Detail
-
getXid
public org.infinispan.commons.tx.XidImpl 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
public Set<Address> getOwners()
- Returns:
- The set of nodes where this transaction information is maintained.
-
addOwner
public void addOwner(Address owner)
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.
-
-