HCOLL-167 added readme info for #### Stateless Client, and moved code to common.

This commit is contained in:
Rob Austin
2014-10-20 18:17:37 +01:00
parent 29eb1ae058
commit 8805c12051
16 changed files with 62 additions and 22 deletions
@@ -7,7 +7,8 @@ import java.io.IOException;
import java.net.InetSocketAddress;
import static java.util.concurrent.TimeUnit.SECONDS;
import static net.openhft.chronicle.StatelessBuilder.remoteAddress;
import static net.openhft.chronicle.common.StatelessBuilder.remoteAddress;
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
import static net.openhft.chronicle.map.TcpReplicationConfig.of;
/**
@@ -25,6 +26,9 @@ public class StatelessClientTest {
// server
{
ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(20000L)
.replicators((byte) 2, of(8076).heartBeatInterval(1L, SECONDS)).file(getPersistenceFile());
serverMap = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(20000L)
.replicators((byte) 2, of(8076).heartBeatInterval(1L, SECONDS)).create();
@@ -16,7 +16,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.TimeProvider;
import net.openhft.chronicle.common.TimeProvider;
import net.openhft.chronicle.map.jrs166.JSR166TestCase;
import org.junit.Test;
import org.mockito.Mockito;