接口 AbstractReadWriteAccess.Lockable

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      Object getValue()
      Returns the enclosed value.
      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, Object version, 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, UUID uuid, long lockId)
      Locks this entry, stamping it with the UUID and lockId given, with the lock timeout occurring at the specified time.
    • 方法详细资料

      • isReadable

        boolean isReadable​(long txTimestamp)
        Returns true if the enclosed value can be read by a transaction started at the given time.
      • isWriteable

        boolean isWriteable​(long txTimestamp,
                            Object version,
                            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.
      • getValue

        Object getValue()
        Returns the enclosed value.
      • isUnlockable

        boolean isUnlockable​(SoftLock lock)
        Returns true if the given lock can be unlocked using the given SoftLock instance as a handle.
      • lock

        AbstractReadWriteAccess.SoftLockImpl lock​(long timeout,
                                                  UUID uuid,
                                                  long lockId)
        Locks this entry, stamping it with the UUID and lockId given, with the lock timeout occurring at the specified time. The returned Lock object can be used to unlock the entry in the future.