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 java.lang.ObjectCache entry ofLRUCache. Instances of this class are immutable.
- 
- 
Constructor SummaryConstructors Constructor Description LRUCacheEntry(T key, long weight, java.time.Instant lastAccessInstant)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetKey()java.time.InstantgetLastAccessInstant()longgetWeight()
 
- 
- 
- 
Constructor Detail- 
LRUCacheEntrypublic LRUCacheEntry(T key, long weight, java.time.Instant lastAccessInstant) throws java.lang.IllegalArgumentException - Parameters:
- key- entry key
- weight- the weight of the cache entry to be reserved.
- lastAccessInstant- last used instant of the entry.
- Throws:
- java.lang.IllegalArgumentException- when provided parameters have illegal values.
 
 
- 
 - 
Method Detail- 
getKeypublic T getKey() 
 - 
getWeightpublic long getWeight() 
 - 
getLastAccessInstantpublic java.time.Instant getLastAccessInstant() 
 
- 
 
-