public interface FileLockManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
FileLockManager.LockMode |
| Modifier and Type | Method and Description |
|---|---|
FileLock |
lock(File target,
FileLockManager.LockMode mode,
String targetDisplayName)
Creates a locks for the given file with the given mode.
|
FileLock |
lock(File target,
FileLockManager.LockMode mode,
String targetDisplayName,
String operationDisplayName)
Creates a locks for the given file with the given mode.
|
FileLock lock(File target, FileLockManager.LockMode mode, String targetDisplayName) throws LockTimeoutException
FileLock.close(). This method blocks until the lock can be acquired.target - The file to be locked.mode - The lock mode.targetDisplayName - A display name for the target file. This is used in log and error messages.LockTimeoutExceptionFileLock lock(File target, FileLockManager.LockMode mode, String targetDisplayName, String operationDisplayName) throws LockTimeoutException
FileLock.close(). This method blocks until the lock can be acquired.target - The file to be locked.mode - The lock mode.targetDisplayName - A display name for the target file. This is used in log and error messages.operationDisplayName - A display name for the operation being performed on the target file. This is used in log and error messages.LockTimeoutExceptionCopyright © 2013. All rights reserved