mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add ChronicleHashBuilder.createOrRecoverPeristedTo() method
This commit is contained in:
@@ -1359,6 +1359,11 @@ public final class ChronicleMapBuilder<K, V> implements
|
||||
return clone().createWithFile(file, false, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChronicleMap<K, V> createOrRecoverPersistedTo(File file) throws IOException {
|
||||
return file.exists() ? recoverPersistedTo(file, true) : createPersistedTo(file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChronicleMap<K, V> recoverPersistedTo(File file, boolean sameBuilderConfig)
|
||||
throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user