|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.transaction.xa.recovery.InDoubtTxInfoImpl
public class InDoubtTxInfoImpl
| Nested Class Summary | |
|---|---|
static class |
InDoubtTxInfoImpl.Externalizer
|
| Constructor Summary | |
|---|---|
InDoubtTxInfoImpl(Xid xid,
long internalId)
|
|
InDoubtTxInfoImpl(Xid xid,
Long internalId,
Integer status)
|
|
InDoubtTxInfoImpl(Xid xid,
long internalId,
Set<Integer> status)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InDoubtTxInfoImpl(Xid xid,
Long internalId,
Integer status)
public InDoubtTxInfoImpl(Xid xid,
long internalId,
Set<Integer> status)
public InDoubtTxInfoImpl(Xid xid,
long internalId)
| Method Detail |
|---|
public Xid getXid()
RecoveryManager.InDoubtTxInfo
getXid in interface RecoveryManager.InDoubtTxInfopublic Long getInternalId()
RecoveryManager.InDoubtTxInfo
getInternalId 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.InDoubtTxInfo
getOwners in interface RecoveryManager.InDoubtTxInfopublic void addStatus(Set<Integer> statusSet)
public void addOwner(Address owner)
public boolean isLocal()
RecoveryManager.InDoubtTxInfo
isLocal in interface RecoveryManager.InDoubtTxInfopublic void setLocal(boolean local)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||