HCOLL-217 Add Deflator compression for JDK Serialized values.

This commit is contained in:
Peter Lawrey
2014-11-26 08:01:34 +02:00
parent 03ebc45299
commit ccf42248a1
5 changed files with 21 additions and 17 deletions
@@ -18,7 +18,7 @@
package net.openhft.chronicle.map;
import net.openhft.lang.io.serialization.JDKObjectSerializer;
import net.openhft.lang.io.serialization.JDKZObjectSerializer;
import org.junit.Test;
import java.io.*;
@@ -35,7 +35,7 @@ public class RecursiveRefereneChMapTest {
file.deleteOnExit();
Map<String, StupidCycle> map = ChronicleMapBuilder.of(String.class, StupidCycle.class)
.entries(64)
.objectSerializer(JDKObjectSerializer.INSTANCE).create();
.objectSerializer(JDKZObjectSerializer.INSTANCE).create();
map.put("Test", new StupidCycle());
map.put("Test2", new StupidCycle2());
StupidCycle cycle = (StupidCycle) map.get("Test");