public interface FileLocker
AbstractFileLockerFilter
instead.Modifier and Type | Method and Description |
---|---|
boolean |
isLockable(File file)
Checks whether the file passed in can be locked by this locker.
|
boolean |
lock(File fileToLock)
Tries to lock the given file and returns
true if it was
successful, false otherwise. |
void |
unlock(File fileToUnlock)
Unlocks the given file.
|
boolean lock(File fileToLock)
true
if it was
successful, false
otherwise.fileToLock
- the file that should be locked according to this lockerboolean isLockable(File file)
file
- The file.void unlock(File fileToUnlock)
fileToUnlock
- the file that should be unlocked according to this locker