mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases.
This commit is contained in:
@@ -49,8 +49,10 @@ public class SetForTCPSocketReplicationTest3way {
|
||||
final int serverPort,
|
||||
final InetSocketAddress... endpoints) throws IOException {
|
||||
return (T) ChronicleSetBuilder.of(Integer.class)
|
||||
.replicators(identifier, of(serverPort, endpoints).
|
||||
heartBeatInterval(1L, SECONDS)).create(getPersistenceFile());
|
||||
.file(getPersistenceFile())
|
||||
.replicators(identifier, of(serverPort, endpoints)
|
||||
.heartBeatInterval(1L, SECONDS))
|
||||
.create();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user