Class LRUCacheEntry<T>

java.lang.Object
fr.gouv.vitam.storage.offers.tape.cache.LRUCacheEntry<T>
Type Parameters:
T - the type of entry keys maintained by the cache.

public class LRUCacheEntry<T> extends Object
Cache entry of LRUCache. Instances of this class are immutable.
  • Constructor Details

    • LRUCacheEntry

      public LRUCacheEntry(T key, long weight, Instant lastAccessInstant) throws IllegalArgumentException
      Parameters:
      key - entry key
      weight - the weight of the cache entry to be reserved.
      lastAccessInstant - last used instant of the entry.
      Throws:
      IllegalArgumentException - when provided parameters have illegal values.
  • Method Details

    • getKey

      public T getKey()
    • getWeight

      public long getWeight()
    • getLastAccessInstant

      public Instant getLastAccessInstant()