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 RepositoryLockMechanism
path
- directory pathjavax.jcr.RepositoryException
- if the canonical path of the directory
can not be determinedpublic void acquire() throws javax.jcr.RepositoryException
acquire
in interface RepositoryLockMechanism
javax.jcr.RepositoryException
- if the repository lock can not be acquiredpublic void release()
release
in interface RepositoryLockMechanism
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.