mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Make ChronicleMapBuilder.entries() config obligatory for in-memory Maps and persistence-creating Maps
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user