This library provides some extras serializers for Kryo project, which is used by SnappyDB.
Add Beapp's repository in your project's repositories list, then add the dependency.
repositories {
jcenter()
// ...
maven { url 'https://repository.beapp.fr/libs-release-local' }
}
dependencies {
compile 'fr.beapp.kryo:kryo-serializers:<version>'
}
You just have to register the needed serializers in a Kryo
instance like this :
kryo.register(Duration.class, new ThreeTenDurationSerializer());
You can register all serializers at once by using :
ThreeTenSerializers.registerAllSerializers(kryo);