HCOLL-134 added the following method - bootstapOnlyLocalEntries(boolean bootstapOnlyLocalEntries)

This commit is contained in:
Rob Austin
2014-11-18 18:40:01 +00:00
parent 01faf866d9
commit 266da0be31
9 changed files with 71 additions and 29 deletions
@@ -492,7 +492,21 @@ public final class ChronicleMapBuilder<K, V> implements ChronicleMapBuilderI<K,
@Override
public ChronicleMap<K, V> createPersistedTo(File file) throws IOException {
return delegate.createPersistedTo(file);
return delegate.createPersistedTo(file);
}
/**
* @param bootstapOnlyLocalEntries if set to true - when a new node joins a TCP replication grid, the new
* node will be populated with data, only for the nodes that created that
* data. Otherwise, all the nodes will publish all the data they have (
* potentially swamping the new node with duplicates ) however this does
* guarantee that all the data is replicated over to the new node, and is
* useful especially in the case that the originating node is not
* currently running.
*/
public ChronicleMapBuilder<K, V> bootstapOnlyLocalEntries(boolean bootstapOnlyLocalEntries) {
delegate.bootstapOnlyLocalEntries(bootstapOnlyLocalEntries);
return this;
}
}