public class RepositoryLock extends Object implements RepositoryLockMechanism
| 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 javax.jcr.RepositoryException
init(String) instead.path - directory pathjavax.jcr.RepositoryException - if the canonical path of the directory
can not be determinedpublic void init(String path) throws javax.jcr.RepositoryException
acquire() method.init in interface RepositoryLockMechanismpath - directory pathjavax.jcr.RepositoryException - if the canonical path of the directory
can not be determinedpublic void acquire()
throws javax.jcr.RepositoryException
acquire in interface RepositoryLockMechanismjavax.jcr.RepositoryException - if the repository lock can not be acquiredpublic void release()
release in interface RepositoryLockMechanismCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.