Class ArchiveOutputRetentionPolicy


  • public class ArchiveOutputRetentionPolicy
    extends java.lang.Object
    This cache is used to purge archive files in output folder. FIXME: should purge by remaining disk space < 20% for example Or disk space should be large enough The problem if someone read multiple tar file in same time then the risque of full disk is possible
    • Constructor Detail

      • ArchiveOutputRetentionPolicy

        public ArchiveOutputRetentionPolicy​(long cacheTimeoutInMinutes,
                                            ReadRequestReferentialCleaner requestReferentialCleaner)
      • ArchiveOutputRetentionPolicy

        public ArchiveOutputRetentionPolicy​(long cacheTimeoutInMinutes,
                                            java.util.concurrent.TimeUnit timeUnit,
                                            int concurrencyLevel,
                                            ReadRequestReferentialCleaner requestReferentialCleaner)
    • Method Detail

      • put

        public void put​(java.lang.String archiveId,
                        java.nio.file.Path path)
      • get

        public java.nio.file.Path get​(java.lang.String archiveId)
      • invalidate

        public void invalidate​(java.lang.String archiveId)
      • cleanUp

        public void cleanUp()
      • getCacheTimeoutInMinutes

        public long getCacheTimeoutInMinutes()