Interface IClusterLock

All Superinterfaces:
AutoCloseable

public interface IClusterLock extends AutoCloseable
  • Method Details

    • getTaskURI

      @Deprecated IURI getTaskURI()
      Deprecated.
      Returns URI of the thing being locked
    • getThingURI

      default IURI getThingURI()
      Returns:
      URI of the thing being locked
    • getCreatedDate

      Date getCreatedDate()
      Returns lock creation datetime
      Returns:
    • getExpirationDate

      Date getExpirationDate()
      Returns lock expiration datetime
    • isExpired

      @Deprecated boolean isExpired(Date currentDate)
      Deprecated.
      Calculates if current lock has already expired (based on currentDate - passed in in case we get current time from DB server)
    • isExpired

      default boolean isExpired()
      Returns:
      if current lock has already expired (based on the current time)
    • incEntry

      void incEntry()
    • decEntry

      void decEntry()
    • getEntryCount

      int getEntryCount()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable