private boolean isFresh ( Record record ) { double period = record . data . getMetaInfo ( ) . getFreshnessPeriod ( ) ; return period < 0 || record . addedAt + ( long ) period > System . currentTimeMillis ( ) ; }
Check if a record is fresh .