mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Made TcpConfig back immutable; Draw the borderline: Builders are mutable, Configs are immutable (hence ChronicleHashInstanceBuilder and StatelessClientBuilder renamed to Configs; improved TcpConfig static factory naming
This commit is contained in:
@@ -63,7 +63,7 @@ public class PostChannelCreationTest {
|
||||
|
||||
{
|
||||
final TcpConfig tcpConfig = TcpConfig
|
||||
.of(8086, new InetSocketAddress("localhost", 8087))
|
||||
.forSendingNode(8086, new InetSocketAddress("localhost", 8087))
|
||||
.heartBeatInterval(1, SECONDS);
|
||||
|
||||
hubA = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig)
|
||||
@@ -82,7 +82,7 @@ public class PostChannelCreationTest {
|
||||
|
||||
{
|
||||
final TcpConfig tcpConfig = TcpConfig
|
||||
.of(8087, new InetSocketAddress("localhost", 8086))
|
||||
.forSendingNode(8087, new InetSocketAddress("localhost", 8086))
|
||||
.heartBeatInterval(1, SECONDS);
|
||||
|
||||
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig)
|
||||
|
||||
Reference in New Issue
Block a user