public interface FileLockManager
Modifier and Type | Method and Description |
---|---|
void |
clearLockFiles() |
int |
getTimeout() |
boolean |
isSkipLocking() |
Lock |
readFileLock(Path file) |
void |
release(Lock lock) |
void |
setSkipLocking(boolean skipLocking) |
void |
setTimeout(int timeout) |
Lock |
writeFileLock(Path file) |
Lock writeFileLock(Path file) throws FileLockException, FileLockTimeoutException
file
- FileLockException
FileLockTimeoutException
Lock readFileLock(Path 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–2019 The Apache Software Foundation. All rights reserved.