public interface FileLockManager
Modifier and Type | Method and Description |
---|---|
void |
clearLockFiles() |
int |
getTimeout() |
boolean |
isSkipLocking() |
Lock |
readFileLock(File file) |
void |
release(Lock lock) |
void |
setSkipLocking(boolean skipLocking) |
void |
setTimeout(int timeout) |
Lock |
writeFileLock(File file) |
Lock writeFileLock(File file) throws FileLockException, FileLockTimeoutException
file
- FileLockException
FileLockTimeoutException
Lock readFileLock(File file) throws FileLockException, FileLockTimeoutException
file
- FileLockException
FileLockTimeoutException
void release(Lock lock) throws FileLockException, FileNotFoundException
void clearLockFiles()
int getTimeout()
void setTimeout(int timeout)
boolean isSkipLocking()
void setSkipLocking(boolean skipLocking)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.