Make ChronicleMapBuilder.entries() config obligatory for in-memory Maps and persistence-creating Maps

This commit is contained in:
leventov
2015-11-24 23:50:41 +03:00
parent d5fe21a290
commit 582560ed15
21 changed files with 133 additions and 82 deletions
@@ -46,7 +46,8 @@ public class SetForTCPSocketReplication3wayTest {
final byte identifier,
final int serverPort,
final InetSocketAddress... endpoints) throws IOException {
return (T) ChronicleSetBuilder.of(Integer.class)
return (T) ChronicleSet.of(Integer.class)
.entries(10)
.replication(identifier, TcpTransportAndNetworkConfig.of(serverPort, asList(endpoints))
.heartBeatInterval(1L, SECONDS).autoReconnectedUponDroppedConnection(true))
.createPersistedTo(getPersistenceFile());