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 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class AbstractReplication {
|
||||
private final byte localIdentifier;
|
||||
private final TcpConfig tcpConfig;
|
||||
private final UdpConfig udpConfig;
|
||||
private final TcpTransportAndNetworkConfig tcpConfig;
|
||||
private final UdpTransportConfig udpConfig;
|
||||
|
||||
AbstractReplication(byte localIdentifier, Builder builder) {
|
||||
this.localIdentifier = localIdentifier;
|
||||
@@ -34,25 +34,25 @@ class AbstractReplication {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public TcpConfig tcpTransportAndNetwork() {
|
||||
public TcpTransportAndNetworkConfig tcpTransportAndNetwork() {
|
||||
return tcpConfig;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public UdpConfig udpTransport() {
|
||||
public UdpTransportConfig udpTransport() {
|
||||
return udpConfig;
|
||||
}
|
||||
|
||||
static abstract class Builder<B extends Builder> {
|
||||
private TcpConfig tcpConfig = null;
|
||||
private UdpConfig udpConfig = null;
|
||||
private TcpTransportAndNetworkConfig tcpConfig = null;
|
||||
private UdpTransportConfig udpConfig = null;
|
||||
|
||||
public B tcpTransportAndNetwork(TcpConfig tcpConfig) {
|
||||
public B tcpTransportAndNetwork(TcpTransportAndNetworkConfig tcpConfig) {
|
||||
this.tcpConfig = tcpConfig;
|
||||
return (B) this;
|
||||
}
|
||||
|
||||
public B udpTransport(UdpConfig udpConfig) {
|
||||
public B udpTransport(UdpTransportConfig udpConfig) {
|
||||
this.udpConfig = udpConfig;
|
||||
return (B) this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user