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:
@@ -23,8 +23,6 @@ import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.net.Inet4Address;
|
||||
|
||||
import static net.openhft.chronicle.map.Replicators.udp;
|
||||
|
||||
/**
|
||||
* Test ReplicatedChronicleMap where the Replicated is over a TCP Socket
|
||||
*
|
||||
@@ -39,12 +37,12 @@ public class UDPSocketReplicationTest {
|
||||
final int identifier,
|
||||
final int udpPort) throws IOException {
|
||||
|
||||
UdpReplicationConfig udpConfig = UdpReplicationConfig
|
||||
UdpReplicationReplicatorConfig udpConfig = UdpReplicationReplicatorConfig
|
||||
.simple(Inet4Address.getByName("255.255.255.255"), udpPort);
|
||||
|
||||
return ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.replicators((byte) identifier, udp(udpConfig))
|
||||
.replicators((byte) identifier, udpConfig)
|
||||
.create(Builder.getPersistenceFile());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user