* Netdb Floodfill rework part 4 of N: Search closest-to-the-key

This commit is contained in:
zzz
2009-11-21 13:50:39 +00:00
parent e9f9e0dabb
commit 8433724452
4 changed files with 42 additions and 5 deletions

View File

@ -52,6 +52,7 @@ public class RoutingKeyGenerator {
}
private byte _currentModData[];
private long _lastChanged;
private final static Calendar _cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"));
private final static SimpleDateFormat _fmt = new SimpleDateFormat("yyyyMMdd");
@ -60,8 +61,13 @@ public class RoutingKeyGenerator {
return _currentModData;
}
public long getLastChanged() {
return _lastChanged;
}
public void setModData(byte modData[]) {
_currentModData = modData;
_lastChanged = _context.clock().now();
}
/**
@ -131,4 +137,4 @@ public class RoutingKeyGenerator {
} catch (Throwable t) { // nop
}
}
}
}