Class ThreadLocalCachedStorageAndLockingService

java.lang.Object
me.desair.tus.server.upload.cache.ThreadLocalCachedStorageAndLockingService
All Implemented Interfaces:
UploadLockingService, UploadStorageService

public class ThreadLocalCachedStorageAndLockingService extends Object implements UploadLockingService, UploadStorageService
Combined implementation of UploadStorageService and UploadLockingService. Uses both of them as delegates but allowing to reduce disk operations during a request processing by caching UploadInfo in the memory. UploadLockingService service is used as a delegate to cleanup cached data on releasing a lock.