public class DldGlobalTransaction extends GlobalTransaction
| Modifier and Type | Class and Description |
|---|---|
static class |
DldGlobalTransaction.Externalizer |
GlobalTransaction.AbstractGlobalTxExternalizer<T extends GlobalTransaction>| Modifier and Type | Field and Description |
|---|---|
protected long |
coinToss |
protected Object |
localLockIntention |
protected Set<Object> |
locksAtOrigin |
protected Collection<Object> |
remoteLockIntention |
addr, id| Constructor and Description |
|---|
DldGlobalTransaction() |
DldGlobalTransaction(Address addr,
boolean remote) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getCoinToss() |
Object |
getLockIntention()
Returns the key this transaction intends to lock.
|
Set<Object> |
getLocksHeldAtOrigin() |
Collection<Object> |
getRemoteLockIntention() |
int |
hashCode() |
boolean |
hasLockAtOrigin(Collection<Object> remoteLockIntention) |
void |
setCoinToss(long coinToss)
Sets the random number that defines the coin toss.
|
void |
setLockIntention(Object lockIntention) |
void |
setLocksHeldAtOrigin(Set<Object> locksAtOrigin) |
void |
setRemoteLockIntention(Collection<Object> remoteLockIntention) |
String |
toString() |
boolean |
wouldLose(DldGlobalTransaction other) |
clone, getAddress, getId, isRemote, setAddress, setId, setRemoteprotected volatile long coinToss
protected transient volatile Object localLockIntention
protected volatile Collection<Object> remoteLockIntention
public DldGlobalTransaction()
public DldGlobalTransaction(Address addr, boolean remote)
public void setCoinToss(long coinToss)
public long getCoinToss()
public boolean equals(Object o)
equals in class GlobalTransactionpublic int hashCode()
hashCode in class GlobalTransactionpublic String toString()
toString in class GlobalTransactionpublic Object getLockIntention()
public void setLockIntention(Object lockIntention)
public boolean wouldLose(DldGlobalTransaction other)
public void setRemoteLockIntention(Collection<Object> remoteLockIntention)
public Collection<Object> getRemoteLockIntention()
public boolean hasLockAtOrigin(Collection<Object> remoteLockIntention)
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.