|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileLocker
A FileLocker is a strategy that can ensure that files are only processed a
single time. Implementations are free to implement any relation between
locking and unlocking. This means that there are no safety guarantees in the
contract, defining these guarantees is up to the implementation.
If a filter that respects locks is required extend
AbstractFileLockerFilter
instead.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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)
void unlock(File fileToUnlock)
fileToUnlock
- the file that should be unlocked according to this locker
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |