* @throws IOException
*/
@Override
public void check() throws IOException {
final Iterator<byte[]> keys = this.iterator();
BytesKey key = null;
final long now = System.currentTimeMillis();
long time;
log.warn("Store4j�����ļ�����ʼ...");
while (keys.hasNext()) {
key = new BytesKey(keys.next());
time = this.lastModifiedMap.get(key);
if (this.intervalForRemove != -1 && now - time > this.intervalForRemove) {
this.innerRemove(key.getData(), true);
}
else if (now - time > this.intervalForCompact) {
this.reuse(key.getData(), true);
}
}
log.warn("Store4j�����ļ��������...");
}