HCOLL-197 removed entry size from the repliaction hub

This commit is contained in:
Rob Austin
2014-12-23 09:44:59 +00:00
parent 026745d63b
commit e003068792
9 changed files with 110 additions and 200 deletions
@@ -37,7 +37,6 @@ public class MapByNameTest {
@Before
public void setUp() throws IOException {
final ReplicationHub replicationHub = ReplicationHub.builder()
.maxEntrySize(10 * 1024)
.tcpTransportAndNetwork(TcpTransportAndNetworkConfig.of(8243))
.createWithId((byte) 1);
@@ -62,10 +62,9 @@ public class SingleMapChannelTest {
.of(8086, new InetSocketAddress("localhost", 8087))
.autoReconnectedUponDroppedConnection(true)
.heartBeatInterval(1, SECONDS);
int maxEntrySize = 1024;
byte identifier = 1;
hubA = ReplicationHub.builder()
.maxEntrySize(maxEntrySize)
.tcpTransportAndNetwork(tcpConfig)
.createWithId(identifier);
// this is how you add maps after the custer is created