Class AbstractReadWriteAccess.SoftLockImpl

java.lang.Object
org.hibernate.cache.spi.support.AbstractReadWriteAccess.SoftLockImpl
All Implemented Interfaces:
Serializable, SoftLock, AbstractReadWriteAccess.Lockable
Enclosing class:
AbstractReadWriteAccess

public static class AbstractReadWriteAccess.SoftLockImpl extends Object implements Serializable, AbstractReadWriteAccess.Lockable, SoftLock
Wrapper type representing locked items.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Returns the enclosed value.
    int
     
    boolean
    isReadable(long txTimestamp)
    Returns true if the enclosed value can be read by a transaction started at the given time.
    boolean
    Returns true if the given lock can be unlocked using the given SoftLock instance as a handle.
    boolean
    isWriteable(long txTimestamp, Object newVersion, 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.
    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.
     
    void
    unlock(long timestamp)
    Unlocks this Lock, and timestamps the unlock event.
    boolean
    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