Class AsyncUploadCache


  • public class AsyncUploadCache
    extends Object
    This class holds all in progress uploads. This class contains two data structures, one is asyncUploadMap which is Map of file path vs lastModified of upload. The second toBeDeleted is Set of upload which is marked for delete, while it is already in progress. Before starting an asynchronous upload, it requires to invoke add(String) to add entry to asyncUploadMap. After asynchronous upload completes, it requires to invoke remove(String) to remove entry from asyncUploadMap Any modification to this class are immediately persisted to local file system. asyncUploadMap is persisted to / homeDir/ PENDIND_UPLOAD_FILE. toBeDeleted is persisted to / homeDir/ TO_BE_DELETED_UPLOAD_FILE. The / homeDir refer to ${rep.home}.
    • Constructor Detail

      • AsyncUploadCache

        public AsyncUploadCache()