ca.uhn.cache.internal
Interface IStaleChunkRule

All Known Implementing Classes:
DefaultStaleChunkRule

public interface IStaleChunkRule

Determiner of whether a chunk is likely to be out of synch with changes to original data.

Version:
$Revision: 1.1 $ updated on $Date: 2005/01/24 22:53:27 $ by $Author: bryan_tripp $
Author:
Bryan Tripp

Method Summary
 long getMaxAge(IChunk theChunk)
           
 

Method Detail

getMaxAge

public long getMaxAge(IChunk theChunk)
Parameters:
theChunk - a chunk to be cached
Returns:
the age of the chunk (i.e. time since cache, in ms) after which the chunk must be evicted, because it is likely to be out of synch with the original data source. This is normally a function of last update time and volatility.


Copyright © 2004-2005 University Health Network. All Rights Reserved.