Interface ResourceLock<O>

All Known Implementing Classes:
LockStoreImpl.ResourceLockImpl

public interface ResourceLock<O>
  • Method Details

    • getMgmtLockOwnerKey

      O getMgmtLockOwnerKey()
      Get an exclusive lock on the lock which prevents concurent modification of the state of the read locks or the write lock. This means that the
      invalid reference
      #acquireReadLock(Object)
      and
      invalid reference
      #acquireWriteLock(Object)
      methods both need to acquire the management lock first
      Returns:
    • get

    • streamReadLockOwnerKeys

      Stream<O> streamReadLockOwnerKeys() throws IOException
      Owner to lock
      Throws:
      IOException
    • getWriteLockOwnerKey

      O getWriteLockOwnerKey() throws IOException
      null if the write lock is not owned
      Throws:
      IOException