Class DldGlobalTransaction

  • All Implemented Interfaces:
    java.lang.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
    • Field Detail

      • locksAtOrigin

        protected volatile java.util.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​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class GlobalTransaction
      • getLockIntention

        public java.util.Collection<java.lang.Object> getLockIntention()
        Deprecated.
        Returns the key this transaction intends to lock.
      • setLockIntention

        public void setLockIntention​(java.util.Collection<java.lang.Object> lockIntention)
        Deprecated.
      • setRemoteLockIntention

        public void setRemoteLockIntention​(java.util.Collection<?> remoteLockIntention)
        Deprecated.
      • getRemoteLockIntention

        public java.util.Collection<?> getRemoteLockIntention()
        Deprecated.
      • hasAnyLockAtOrigin

        public boolean hasAnyLockAtOrigin​(DldGlobalTransaction otherTx)
        Deprecated.
      • setLocksHeldAtOrigin

        public void setLocksHeldAtOrigin​(java.util.Collection<?> locksAtOrigin)
        Deprecated.
      • getLocksHeldAtOrigin

        public java.util.Collection<?> getLocksHeldAtOrigin()
        Deprecated.