HCOLL-85 HCOLL-142 JLANG-29 Featured serializers

This commit is contained in:
leventov
2014-09-24 22:12:39 +04:00
parent 6d17ce29d2
commit 38cda58032
35 changed files with 2366 additions and 940 deletions
@@ -66,14 +66,14 @@ public class Builder {
.create(getPersistenceFile());
}
static MapProvider<ReplicatedChronicleMap<Integer, Integer>> newShmIntInt(
static MapProvider<ReplicatedChronicleMap<Integer, ?, ?, Integer, ?, ?>> newShmIntInt(
int size, final ArrayBlockingQueue<byte[]> input,
final ArrayBlockingQueue<byte[]> output,
final byte localIdentifier, byte externalIdentifier) throws IOException {
Replicator queue = QueueReplicator.of(localIdentifier, externalIdentifier, input, output);
final ReplicatedChronicleMap<Integer, Integer> result =
(ReplicatedChronicleMap<Integer, Integer>) ChronicleMapBuilder
final ReplicatedChronicleMap<Integer, ?, ?, Integer, ?, ?> result =
(ReplicatedChronicleMap<Integer, ?, ?, Integer, ?, ?>) ChronicleMapBuilder
.of(Integer.class, Integer.class)
.entries(size)
.addReplicator(queue)
@@ -88,10 +88,10 @@ public class Builder {
if (q == null)
throw new AssertionError();
final QueueReplicator finalQ = q;
return new MapProvider<ReplicatedChronicleMap<Integer, Integer>>() {
return new MapProvider<ReplicatedChronicleMap<Integer, ?, ?, Integer, ?, ?>>() {
@Override
public ReplicatedChronicleMap<Integer, Integer> getMap() {
public ReplicatedChronicleMap<Integer, ?, ?, Integer, ?, ?> getMap() {
return result;
}