public class RepositoryLock extends Object implements RepositoryLockMechanism
https://issues.apache.org/jira/browse/JCR-213,
https://issues.apache.org/jira/browse/JCR-233,
https://issues.apache.org/jira/browse/JCR-254,
https://issues.apache.org/jira/browse/JCR-912,
https://issues.apache.org/jira/browse/JCR-933| Constructor and Description |
|---|
RepositoryLock() |
RepositoryLock(String path)
Deprecated.
This constructor is deprecated; use the default constructor
and
init(String) instead. |
public RepositoryLock()
public RepositoryLock(String path) throws RepositoryException
init(String) instead.path - directory pathRepositoryException - if the canonical path of the directory
can not be determinedpublic void init(String path) throws RepositoryException
acquire() method.init in interface RepositoryLockMechanismpath - directory pathRepositoryException - if the canonical path of the directory
can not be determinedpublic void acquire()
throws RepositoryException
acquire in interface RepositoryLockMechanismRepositoryException - if the repository lock can not be acquiredpublic void release()
release in interface RepositoryLockMechanismCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.