Class ArchiveCacheEvictionController

java.lang.Object
fr.gouv.vitam.storage.offers.tape.cas.ArchiveCacheEvictionController

public class ArchiveCacheEvictionController extends Object
  • Constructor Details

  • Method Details

    • computeEvictionJudge

      public LRUCacheEvictionJudge<ArchiveCacheEntry> computeEvictionJudge()
      Computes an eviction judge that prevents eviction of in-use archives (required by active access requests) or eviction of archives that are non-expirable (to be kept forever in cache).
      Returns:
      An eviction judge that decides if an archive "file-bucket-id/tarId" can be evicted from cache or not.
    • createLock

      public LockHandle createLock(Set<ArchiveCacheEntry> archiveCacheEntries)