|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.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 addStatus(Set<Integer> statusSet)
public void addOwner(Address owner)
public boolean isLocal()
RecoveryManager.InDoubtTxInfo
isLocal
in interface RecoveryManager.InDoubtTxInfo
public void setLocal(boolean local)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |