Add ChronicleHash.offHeapMemoryUsed() method; Centralized management of all direct memory and file resources of ChronicleMap in one Cleaner

This commit is contained in:
leventov
2016-11-05 15:08:45 -06:00
parent 68c29c4c54
commit 9a2bb31b66
12 changed files with 478 additions and 159 deletions
@@ -150,8 +150,8 @@ public class VanillaChronicleMap<K, V, R>
initOwnTransients();
}
public void recover() throws IOException {
basicRecover();
public void recover(ChronicleHashResourceReleaser resourceReleaser) throws IOException {
basicRecover(resourceReleaser);
try (IterationContext<K, V, ?> iterationContext = iterationContext()) {
iterationContext.recoverSegments();
}