Interface KeyedLock<K,V>

All Superinterfaces:
AutoCloseable

@Internal public interface KeyedLock<K,V> extends AutoCloseable
A lock associated to an object that keeps track of how many threads are currently using this lock until none are left in which case it removes itself. These locks should be registered in a KeyedLockMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    void
    Should not be called by users of lock.
    void
     
  • Method Details

    • getOrRetryValue

      V getOrRetryValue()
    • lock

      @OverrideOnly void lock()
      Should not be called by users of lock.
    • unlock

      void unlock()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable