Class DiskLockingService

java.lang.Object
me.desair.tus.server.upload.disk.AbstractDiskBasedService
me.desair.tus.server.upload.disk.DiskLockingService
All Implemented Interfaces:
UploadLockingService

public class DiskLockingService extends AbstractDiskBasedService implements UploadLockingService
UploadLockingService implementation that uses the file system for implementing locking
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.