HCOLL-216 added a fix to the TcpReplicator to stop OP_WRITE from spinning when working with the stateless client - also introduced the Netty like code for patching the

nio selector to reduce object creation.
This commit is contained in:
Rob Austin
2014-11-25 20:45:43 +00:00
parent 21b0d96493
commit b747788152
5 changed files with 302 additions and 55 deletions
@@ -62,9 +62,10 @@ public class SingleMapChannelTest {
{
final TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig
.of(8086, new InetSocketAddress("localhost", 8087))
.autoReconnectedUponDroppedConnection(true)
.heartBeatInterval(1, SECONDS);
int maxEntrySize = 1024;
byte identifier= 1;
byte identifier = 1;
hubA = ReplicationHub.builder()
.maxEntrySize(maxEntrySize)
.tcpTransportAndNetwork(tcpConfig)
@@ -79,9 +80,11 @@ public class SingleMapChannelTest {
{
final TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig
.of(8087, new InetSocketAddress("localhost", 8086))
.autoReconnectedUponDroppedConnection(true)
.heartBeatInterval(1, SECONDS);
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig).createWithId((byte) 2);
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig).createWithId(
(byte) 2);
// this is how you add maps after the custer is created
map1b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)