Class FileBasedLock

java.lang.Object
me.desair.tus.server.upload.disk.FileBasedLock
All Implemented Interfaces:
AutoCloseable, UploadLock

public class FileBasedLock extends Object implements UploadLock
Upload locking implementation using the file system file locking mechanism. File locking can also apply to shared network drives. This way the framework supports clustering as long as the upload storage directory is mounted as a shared (network) drive.
File locks are also automatically released on application (JVM) shutdown. This means the file locking is not persistent and prevents cleanup and stale lock issues.