org.terracotta.cache.evictor
Interface CapacityEvictionPolicyData

All Superinterfaces:
Comparable<CapacityEvictionPolicyData>
All Known Implementing Classes:
LFUCapacityEvictionPolicyData, LRUCapacityEvictionPolicyData, NullCapacityEvictionPolicyData

public interface CapacityEvictionPolicyData
extends Comparable<CapacityEvictionPolicyData>

It is important that implementations of CapacityEvictionPolicyData#compareTo(org.terracotta.cache.evictor.CapacityEvictionPolicyData) safely handle comparison with a null object. Null objects represent untouched values, hence a.compareTo(null) should by contract return a positive value since 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 © 2010 Terracotta, Inc.. All Rights Reserved.