Some renames in replication API, fixed potential issue with networkInterface configuration for udp multicast

This commit is contained in:
leventov
2014-11-08 05:26:10 +03:00
parent 0bcfa7ee43
commit c0d9099da9
29 changed files with 215 additions and 202 deletions
@@ -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;
}