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. |
Modifier and Type | Method and Description |
---|---|
void |
acquire()
Lock the repository home.
|
void |
init(String path)
Initialize the instance for the given directory path.
|
void |
release()
Releases repository lock.
|
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 RepositoryLockMechanism
path
- directory pathRepositoryException
- if the canonical path of the directory
can not be determinedpublic void acquire() throws RepositoryException
acquire
in interface RepositoryLockMechanism
RepositoryException
- if the repository lock can not be acquiredpublic void release()
release
in interface RepositoryLockMechanism
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.