voldemort.utils
Class ConsistencyCheck.RetentionChecker

java.lang.Object
  extended by voldemort.utils.ConsistencyCheck.RetentionChecker
Enclosing class:
ConsistencyCheck

protected static class ConsistencyCheck.RetentionChecker
extends java.lang.Object

A checker to determine if a key is to be cleaned according to retention policy


Constructor Summary
ConsistencyCheck.RetentionChecker(int days)
           
 
Method Summary
 boolean isExpired(ConsistencyCheck.Value v)
          Determine if a version is expired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsistencyCheck.RetentionChecker

public ConsistencyCheck.RetentionChecker(int days)
Parameters:
days - number of days ago from now to retain keys
Method Detail

isExpired

public boolean isExpired(ConsistencyCheck.Value v)
Determine if a version is expired

Parameters:
v - version to be checked
Returns:
if the version is expired according to retention policy


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu