Package fr.gouv.vitam.storage.offers.tape.cache

# 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 Summary

  Constructors
  Constructor
  Description
  `LRUCacheEntry(T key, long weight, Instant lastAccessInstant)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `getKey()`
  `Instant`
  `getLastAccessInstant()`
  `long`
  `getWeight()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()