blob: c41010398f6f596561e7f92152fa7de9b967d912 [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;
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -07005import org.onlab.util.KryoPool;
6
7public final class DistributedStoreSerializers {
8
9 /**
10 * KryoPool which can serialize ON.lab misc classes.
11 */
12 public static final KryoPool COMMON = KryoPool.newBuilder()
13 .register(KryoPoolUtil.API)
14 .register(Timestamped.class)
15 .register(MastershipBasedTimestamp.class, new MastershipBasedTimestampSerializer())
16 .build();
17
18 // avoid instantiation
19 private DistributedStoreSerializers() {}
20}