org.terracotta.cache.evictor
Interface CapacityEvictionPolicyData
- All Superinterfaces:
- Comparable<CapacityEvictionPolicyData>
- All Known Implementing Classes:
- LFUCapacityEvictionPolicyData, LRUCapacityEvictionPolicyData, NullCapacityEvictionPolicyData
public interface CapacityEvictionPolicyData
- extends Comparable<CapacityEvictionPolicyData>
A datum attached to an entry providing comparison and storage of capacity eviction data.
It is important that implementations of
CapacityEvictionPolicyData#compareTo(CapacityEvictionPolicyData)
safely handle comparison with a null object. Null objects represent
untouched values, hence a.compareTo(null) should under a
conventional eviction policy return a positive value (untouched values should
always be evicted first).
- Author:
- abhi.sanoujam
|
Method Summary |
void |
markUsed(int usedAtTime)
|
markUsed
void markUsed(int usedAtTime)
Copyright © 2015 Terracotta, Inc.. All Rights Reserved.