CE-20 moved the map lookup by name from engine to the map code ( but its a bit of a hack and requires implementing properly, but for the moment this demonstrates the API )

This commit is contained in:
Rob Austin
2015-04-09 13:09:25 +01:00
parent e0363defe5
commit 6037bd27e4
8 changed files with 161 additions and 108 deletions
@@ -60,7 +60,6 @@ class ClientWiredStatelessChronicleMap<K, V>
private boolean putReturnsNull;
private boolean removeReturnsNull;
private short channelID;
// used with toString()
private static final int MAX_NUM_ENTRIES = 20;
@@ -68,9 +67,11 @@ class ClientWiredStatelessChronicleMap<K, V>
public ClientWiredStatelessChronicleMap(
@NotNull final ClientWiredChronicleMapStatelessBuilder config,
@NotNull final Class kClass, @NotNull final Class vClass, short channelID) {
this.channelID = channelID;
this.csp = "//server/path/" + channelID + "#MAP";
@NotNull final Class kClass,
@NotNull final Class vClass,
@NotNull final String channelName) {
this.csp = "//" + channelName + "#MAP";
this.hub = config.hub;
this.putReturnsNull = config.putReturnsNull();
this.removeReturnsNull = config.removeReturnsNull();