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 AbstractExternalizer<InDoubtTxInfo>
EXTERNALIZER
-
Constructor Summary
Constructors Constructor Description InDoubtTxInfo(XidImpl xid, long internalId)
InDoubtTxInfo(XidImpl xid, long internalId, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOwner(Address owner)
Addsowner
as a node where this transaction information is maintained.boolean
equals(Object o)
long
getInternalId()
Set<Address>
getOwners()
int
getStatus()
The value represent transaction's state as described by thestatus
field.XidImpl
getXid()
int
hashCode()
boolean
isLocal()
void
setLocal(boolean local)
Setstrue
if this transaction information is stored locally.void
setStatus(int status)
Sets the transaction's state.String
toString()
-
-
-
Field Detail
-
EXTERNALIZER
public static final AbstractExternalizer<InDoubtTxInfo> EXTERNALIZER
-
-
Method Detail
-
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 thestatus
field.- Returns:
- The
Status
or -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)
Addsowner
as a node where this transaction information is maintained.
-
isLocal
public boolean isLocal()
- Returns:
True
if the transaction information is also present on this node.
-
setLocal
public void setLocal(boolean local)
Setstrue
if this transaction information is stored locally.
-
-