blob: a04539b48dd52e6d6e90e7f83744c4e6b06b4862 [file] [log] [blame]
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -07001package org.onlab.onos.store.serializers;
2
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -07003import org.onlab.onos.store.common.impl.Timestamped;
Yuta HIGUCHI8ce08732014-10-11 10:40:45 -07004import org.onlab.onos.store.impl.MastershipBasedTimestamp;
Madan Jampanib5e9b1d2014-10-13 14:18:39 -07005import org.onlab.onos.store.impl.WallClockTimestamp;
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -07006import org.onlab.util.KryoPool;
7
8public final class DistributedStoreSerializers {
9
10 /**
11 * KryoPool which can serialize ON.lab misc classes.
12 */
13 public static final KryoPool COMMON = KryoPool.newBuilder()
14 .register(KryoPoolUtil.API)
15 .register(Timestamped.class)
16 .register(MastershipBasedTimestamp.class, new MastershipBasedTimestampSerializer())
Madan Jampanib5e9b1d2014-10-13 14:18:39 -070017 .register(WallClockTimestamp.class)
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -070018 .build();
19
20 // avoid instantiation
21 private DistributedStoreSerializers() {}
22}