Package org.infinispan.transaction.xa
Class DldGlobalTransaction
- java.lang.Object
-
- org.infinispan.transaction.xa.GlobalTransaction
-
- org.infinispan.transaction.xa.DldGlobalTransaction
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
RecoveryAwareDldGlobalTransaction
@Deprecated public class DldGlobalTransaction extends GlobalTransaction
Deprecated.Since 9.0, no longer used.This class is used when deadlock detection is enabled.- Author:
- Mircea.Markus@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDldGlobalTransaction.ExternalizerDeprecated.-
Nested classes/interfaces inherited from class org.infinispan.transaction.xa.GlobalTransaction
GlobalTransaction.AbstractGlobalTxExternalizer<T extends GlobalTransaction>
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<?>locksAtOriginDeprecated.-
Fields inherited from class org.infinispan.transaction.xa.GlobalTransaction
addr, id
-
-
Constructor Summary
Constructors Constructor Description DldGlobalTransaction()Deprecated.DldGlobalTransaction(Address addr, boolean remote)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.longgetCoinToss()Deprecated.Collection<Object>getLockIntention()Deprecated.Returns the key this transaction intends to lock.Collection<?>getLocksHeldAtOrigin()Deprecated.Collection<?>getRemoteLockIntention()Deprecated.booleanhasAnyLockAtOrigin(DldGlobalTransaction otherTx)Deprecated.inthashCode()Deprecated.voidsetCoinToss(long coinToss)Deprecated.Sets the random number that defines the coin toss.voidsetLockIntention(Collection<Object> lockIntention)Deprecated.voidsetLocksHeldAtOrigin(Collection<?> locksAtOrigin)Deprecated.voidsetRemoteLockIntention(Collection<?> remoteLockIntention)Deprecated.StringtoString()Deprecated.booleanwouldLose(DldGlobalTransaction other)Deprecated.-
Methods inherited from class org.infinispan.transaction.xa.GlobalTransaction
clone, getAddress, getId, globalId, isRemote, setAddress, setId, setRemote
-
-
-
-
Field Detail
-
locksAtOrigin
protected volatile Collection<?> locksAtOrigin
Deprecated.
-
-
Constructor Detail
-
DldGlobalTransaction
public DldGlobalTransaction()
Deprecated.
-
DldGlobalTransaction
public DldGlobalTransaction(Address addr, boolean remote)
Deprecated.
-
-
Method Detail
-
setCoinToss
public void setCoinToss(long coinToss)
Deprecated.Sets the random number that defines the coin toss. A coin toss is a random number that is used when a deadlock is detected for deciding which transaction should commit and which should rollback.
-
getCoinToss
public long getCoinToss()
Deprecated.
-
equals
public boolean equals(Object o)
Deprecated.- Overrides:
equalsin classGlobalTransaction
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classGlobalTransaction
-
toString
public String toString()
Deprecated.- Overrides:
toStringin classGlobalTransaction
-
getLockIntention
public Collection<Object> getLockIntention()
Deprecated.Returns the key this transaction intends to lock.
-
setLockIntention
public void setLockIntention(Collection<Object> lockIntention)
Deprecated.
-
wouldLose
public boolean wouldLose(DldGlobalTransaction other)
Deprecated.
-
setRemoteLockIntention
public void setRemoteLockIntention(Collection<?> remoteLockIntention)
Deprecated.
-
getRemoteLockIntention
public Collection<?> getRemoteLockIntention()
Deprecated.
-
hasAnyLockAtOrigin
public boolean hasAnyLockAtOrigin(DldGlobalTransaction otherTx)
Deprecated.
-
setLocksHeldAtOrigin
public void setLocksHeldAtOrigin(Collection<?> locksAtOrigin)
Deprecated.
-
getLocksHeldAtOrigin
public Collection<?> getLocksHeldAtOrigin()
Deprecated.
-
-