Renamed TcpConfig static factories back to of()

This commit is contained in:
leventov
2014-11-11 17:16:57 +03:00
parent 308abc5b72
commit 59f53fd115
14 changed files with 47 additions and 60 deletions
@@ -44,7 +44,7 @@ public class TwoMapOnDifferentServersTest {
public void setup() throws IOException {
final TcpTransportAndNetworkConfig tcpConfig =
TcpTransportAndNetworkConfig.forSendingNode(8076, new InetSocketAddress("localhost", 8077))
TcpTransportAndNetworkConfig.of(8076, new InetSocketAddress("localhost", 8077))
.heartBeatInterval(1, SECONDS);
@@ -54,7 +54,7 @@ public class TwoMapOnDifferentServersTest {
map2 = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(20000)
.replication((byte) 2, TcpTransportAndNetworkConfig.forReceivingOnlyNode(8077)
.replication((byte) 2, TcpTransportAndNetworkConfig.of(8077)
.heartBeatInterval(1, SECONDS)).create();
}