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

Nested Class Summary
static interface CapacityEvictionPolicyData.Factory
           
 
Method Summary
 void markUsed(int usedAtTime)
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

markUsed

void markUsed(int usedAtTime)


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.