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.InDoubtTxInfogetXid in interface RecoveryManager.InDoubtTxInfopublic Long getInternalId()
RecoveryManager.InDoubtTxInfogetInternalId in interface RecoveryManager.InDoubtTxInfopublic Set<Integer> getStatus()
RecoveryManager.InDoubtTxInfoStatus 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.InDoubtTxInfopublic Set<Address> getOwners()
RecoveryManager.InDoubtTxInfogetOwners in interface RecoveryManager.InDoubtTxInfopublic void addOwner(Address owner)
public boolean isLocal()
RecoveryManager.InDoubtTxInfoisLocal in interface RecoveryManager.InDoubtTxInfopublic void setLocal(boolean local)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.