public class InDoubtTxInfoImpl extends Object implements RecoveryManager.InDoubtTxInfo
Modifier and Type | Class and Description |
---|---|
static class |
InDoubtTxInfoImpl.Externalizer |
Constructor and Description |
---|
InDoubtTxInfoImpl(Xid xid,
long internalId) |
InDoubtTxInfoImpl(Xid xid,
Long internalId,
Integer status) |
InDoubtTxInfoImpl(Xid xid,
long internalId,
Set<Integer> status) |
Modifier and Type | Method and Description |
---|---|
void |
addOwner(Address owner) |
void |
addStatus(Set<Integer> statusSet) |
boolean |
equals(Object o) |
Long |
getInternalId()
Each xid has a unique long object associated to it.
|
Set<Address> |
getOwners()
Returns the set of nodes where this transaction information is maintained.
|
Set<Integer> |
getStatus()
The value represent transaction's state as described by the
Status field. |
Xid |
getXid()
Transaction's id.
|
int |
hashCode() |
boolean |
isLocal()
Returns true if the transaction information is also present on this node.
|
void |
setLocal(boolean local) |
String |
toString() |
public InDoubtTxInfoImpl(Xid xid, long internalId)
public Xid getXid()
RecoveryManager.InDoubtTxInfo
getXid
in interface RecoveryManager.InDoubtTxInfo
public Long getInternalId()
RecoveryManager.InDoubtTxInfo
getInternalId
in interface RecoveryManager.InDoubtTxInfo
public Set<Integer> getStatus()
RecoveryManager.InDoubtTxInfo
Status
field. Multiple values are returned
as it is possible for an in-doubt transaction to be at the same time e.g. prepared on one node and committed on the other.getStatus
in interface RecoveryManager.InDoubtTxInfo
public Set<Address> getOwners()
RecoveryManager.InDoubtTxInfo
getOwners
in interface RecoveryManager.InDoubtTxInfo
public void addOwner(Address owner)
public boolean isLocal()
RecoveryManager.InDoubtTxInfo
isLocal
in interface RecoveryManager.InDoubtTxInfo
public void setLocal(boolean local)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.