Class CoherenceRegionValue.SoftLock

java.lang.Object
com.oracle.coherence.hibernate.cache.v6.region.CoherenceRegionValue.SoftLock
All Implemented Interfaces:
Serializable, org.hibernate.cache.spi.access.SoftLock
Enclosing class:
CoherenceRegionValue

public static class CoherenceRegionValue.SoftLock extends Object implements Serializable, org.hibernate.cache.spi.access.SoftLock
A CoherenceRegion.CoherenceRegionValue.SoftLock is an object representing a "soft lock" on an entry in second-level cache.
Author:
Randy Stafford
See Also:
  • Constructor Details

    • SoftLock

      public SoftLock(UUID acquirerId, long sequenceNumber, long expirationTime)
      Complete constructor.
      Parameters:
      acquirerId - a unique identifier of the component that acquired this SoftLock
      sequenceNumber - the sequenceNumber of this SoftLock with respect to its acquirer
      expirationTime - the time at which this SoftLock expires
  • Method Details

    • getExpirationTime

      public long getExpirationTime()
      Returns this SoftLock's expiration time.
      Returns:
      the long that is this SoftLock's expiration time
    • equals

      public boolean equals(Object someObject)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object