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
-
Constructor Summary
ConstructorDescriptionInDoubtTxInfo
(XidImpl xid, long internalId) InDoubtTxInfo
(XidImpl xid, long internalId, int status) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Addsowner
as a node where this transaction information is maintained.boolean
long
int
The value represent transaction's state as described by thestatus
field.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.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 thestatus
field.- Returns:
- The
Status
or -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
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. -
equals
-
hashCode
public int hashCode() -
toString
-