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 class
DldGlobalTransaction.Externalizer
Deprecated.-
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<?>
locksAtOrigin
Deprecated.-
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 boolean
equals(Object o)
Deprecated.long
getCoinToss()
Deprecated.Collection<Object>
getLockIntention()
Deprecated.Returns the key this transaction intends to lock.Collection<?>
getLocksHeldAtOrigin()
Deprecated.Collection<?>
getRemoteLockIntention()
Deprecated.boolean
hasAnyLockAtOrigin(DldGlobalTransaction otherTx)
Deprecated.int
hashCode()
Deprecated.void
setCoinToss(long coinToss)
Deprecated.Sets the random number that defines the coin toss.void
setLockIntention(Collection<Object> lockIntention)
Deprecated.void
setLocksHeldAtOrigin(Collection<?> locksAtOrigin)
Deprecated.void
setRemoteLockIntention(Collection<?> remoteLockIntention)
Deprecated.String
toString()
Deprecated.boolean
wouldLose(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:
equals
in classGlobalTransaction
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classGlobalTransaction
-
toString
public String toString()
Deprecated.- Overrides:
toString
in 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.
-
-