public class CooperativeFileLock extends Object implements RepositoryLockMechanism
Constructor and Description |
---|
CooperativeFileLock() |
public void init(String path)
init
in interface RepositoryLockMechanism
path
- basic path to append FILE_NAME
to.public void acquire() throws javax.jcr.RepositoryException
acquire
in interface RepositoryLockMechanism
javax.jcr.RepositoryException
- if locking was not successfulpublic void release()
release
in interface RepositoryLockMechanism
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.