Class AbstractReadWriteAccess.SoftLockImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getValue()
      Returns the enclosed value.
      int hashCode()  
      boolean isReadable​(long txTimestamp)
      Returns true if the enclosed value can be read by a transaction started at the given time.
      boolean isUnlockable​(SoftLock lock)
      Returns true if the given lock can be unlocked using the given SoftLock instance as a handle.
      boolean isWriteable​(long txTimestamp, java.lang.Object newVersion, java.util.Comparator versionComparator)
      Returns true if the enclosed value can be replaced with one of the given version by a transaction started at the given time.
      AbstractReadWriteAccess.SoftLockImpl lock​(long timeout, java.util.UUID uuid, long lockId)
      Locks this entry, stamping it with the UUID and lockId given, with the lock timeout occurring at the specified time.
      java.lang.String toString()  
      void unlock​(long timestamp)
      Unlocks this Lock, and timestamps the unlock event.
      boolean wasLockedConcurrently()
      Returns true if this Lock has been concurrently locked by more than one transaction.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • isWriteable

        public boolean isWriteable​(long txTimestamp,
                                   java.lang.Object newVersion,
                                   java.util.Comparator versionComparator)
        Description copied from interface: AbstractReadWriteAccess.Lockable
        Returns true if the enclosed value can be replaced with one of the given version by a transaction started at the given time.
        Specified by:
        isWriteable in interface AbstractReadWriteAccess.Lockable
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • wasLockedConcurrently

        public boolean wasLockedConcurrently()
        Returns true if this Lock has been concurrently locked by more than one transaction.
      • unlock

        public void unlock​(long timestamp)
        Unlocks this Lock, and timestamps the unlock event.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object