mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Some renames in replication API, fixed potential issue with networkInterface configuration for udp multicast
This commit is contained in:
@@ -20,8 +20,8 @@ package net.openhft.chronicle.map;
|
||||
|
||||
|
||||
import net.openhft.chronicle.hash.replication.ReplicationHub;
|
||||
import net.openhft.chronicle.hash.replication.TcpConfig;
|
||||
import net.openhft.chronicle.hash.replication.UdpConfig;
|
||||
import net.openhft.chronicle.hash.replication.TcpTransportAndNetworkConfig;
|
||||
import net.openhft.chronicle.hash.replication.UdpTransportConfig;
|
||||
import net.openhft.lang.collection.DirectBitSet;
|
||||
import net.openhft.lang.collection.SingleThreadedDirectBitSet;
|
||||
import net.openhft.lang.io.ByteBufferBytes;
|
||||
@@ -58,7 +58,7 @@ final class ChannelProvider implements Closeable {
|
||||
if (channelProvider != null)
|
||||
return channelProvider;
|
||||
channelProvider = new ChannelProvider(hub);
|
||||
TcpConfig tcpConfig = hub.tcpTransportAndNetwork();
|
||||
TcpTransportAndNetworkConfig tcpConfig = hub.tcpTransportAndNetwork();
|
||||
if (tcpConfig != null) {
|
||||
final TcpReplicator tcpReplicator = new TcpReplicator(
|
||||
channelProvider.asReplica,
|
||||
@@ -67,7 +67,7 @@ final class ChannelProvider implements Closeable {
|
||||
channelProvider.add(tcpReplicator);
|
||||
}
|
||||
|
||||
UdpConfig udpConfig = hub.udpTransport();
|
||||
UdpTransportConfig udpConfig = hub.udpTransport();
|
||||
if (udpConfig != null) {
|
||||
final UdpReplicator udpReplicator =
|
||||
new UdpReplicator(
|
||||
|
||||
Reference in New Issue
Block a user