Class InMemoryResourceLockManager

    • Method Detail

      • acquire

        public void acquire​(String txId,
                            FedoraId resourceId)
        Description copied from interface: ResourceLockManager
        Acquires a lock on the resource, associating it to the txId. If the lock is held by a different transaction, an exception is thrown. If the lock is already held by the same transaction, then it returns successfully.
        Specified by:
        acquire in interface ResourceLockManager
        Parameters:
        txId - the transaction id to associate the lock to
        resourceId - the resource to lock