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