mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-163 kept the use of tcp() and udp() internal
This commit is contained in:
@@ -27,8 +27,7 @@ import java.net.InetSocketAddress;
|
||||
|
||||
import static java.util.concurrent.TimeUnit.SECONDS;
|
||||
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
|
||||
import static net.openhft.chronicle.map.Replicators.tcp;
|
||||
import static net.openhft.chronicle.map.TcpReplicationConfig.of;
|
||||
import static net.openhft.chronicle.map.TcpReplicationReplicatorConfig.of;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -51,8 +50,8 @@ public class SetForTCPSocketReplicationTest3way {
|
||||
final int serverPort,
|
||||
final InetSocketAddress... endpoints) throws IOException {
|
||||
return (T) ChronicleSetBuilder.of(Integer.class)
|
||||
.replicators(identifier, tcp(of(serverPort, endpoints).
|
||||
heartBeatInterval(1L, SECONDS))).create(getPersistenceFile());
|
||||
.replicators(identifier, of(serverPort, endpoints).
|
||||
heartBeatInterval(1L, SECONDS)).create(getPersistenceFile());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user