HCOLL-81 made publicly a single ChronicleMapBuilder, that delegates onto internal implementations

This commit is contained in:
Rob Austin
2014-11-15 09:05:26 +00:00
parent 88df95fc76
commit 49fc123755
54 changed files with 1373 additions and 524 deletions
@@ -19,7 +19,7 @@
package net.openhft.chronicle.map.example;
import net.openhft.chronicle.map.ChronicleMap;
import net.openhft.chronicle.map.ChronicleMapOnHeapUpdatableBuilder;
import net.openhft.chronicle.map.ChronicleMapBuilder;
import net.openhft.lang.model.DataValueClasses;
import net.openhft.lang.values.LongValue;
@@ -30,7 +30,7 @@ public class DistributedSequenceMain {
public static void main(String... ignored) throws IOException {
Class<LongValue> longValueClass = DataValueClasses.directClassFor(LongValue.class);
ChronicleMap<String, LongValue> map =
ChronicleMapOnHeapUpdatableBuilder.of(String.class, longValueClass)
ChronicleMapBuilder.of(String.class, longValueClass)
.entries(128)
.actualSegments(1).create();
LongValue value = DataValueClasses.newDirectReference(longValueClass);