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 Collection<Object> |
lockIntention |
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() |
Collection<Object> |
getLockIntention()
Returns the key this transaction intends to lock.
|
Set<Object> |
getLocksHeldAtOrigin() |
Collection<Object> |
getRemoteLockIntention() |
boolean |
hasAnyLockAtOrigin(DldGlobalTransaction otherTx) |
int |
hashCode() |
void |
setCoinToss(long coinToss)
Sets the random number that defines the coin toss.
|
void |
setLockIntention(Collection<Object> lockIntention) |
void |
setLocksHeldAtOrigin(Set<Object> locksAtOrigin) |
void |
setRemoteLockIntention(Collection<Object> remoteLockIntention) |
String |
toString() |
boolean |
wouldLose(DldGlobalTransaction other) |
clone, getAddress, getId, globalId, isRemote, setAddress, setId, setRemoteprotected volatile long coinToss
protected transient volatile Collection<Object> lockIntention
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 Collection<Object> getLockIntention()
public void setLockIntention(Collection<Object> lockIntention)
public boolean wouldLose(DldGlobalTransaction other)
public void setRemoteLockIntention(Collection<Object> remoteLockIntention)
public Collection<Object> getRemoteLockIntention()
public boolean hasAnyLockAtOrigin(DldGlobalTransaction otherTx)
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.