Package io.github.oberhoff.distributedcaffeine.serializer
This package contains classes and interfaces providing serializing/deserializing functionality for Distributed
Caffeine cache instances.
Distributed Caffeine already has build-in serializers:
If custom serializers are required, they must implement one of the following interfaces:
ByteArraySerializer
for serializing an object to a byte array representationStringSerializer
for serializing an object to a string representationJsonSerializer
for serializing an object to a JSON representation (encoded as String or BSON)
-
Interface Summary Interface Description ByteArraySerializer<T> Interface to be used when implementing a custom serializer with byte array representation.JsonSerializer<T> Interface to be used when implementing a custom serializer with JSON representation (encoded as String or BSON).Serializer<T,U> This is only a marker interface.StringSerializer<T> Interface to be used when implementing a custom serializer with string representation. -
Class Summary Class Description FurySerializer<T> Implementation of a serializer with byte array representation based on Apache Fury.JacksonSerializer<T> Implementation of a serializer with JSON representation (encoded as String or BSON) based on Jackson.JavaObjectSerializer<T> Implementation of a serializer with byte array representation based on Java Object Serialization. -
Exception Summary Exception Description SerializerException Checked exception to be thrown if serialization or deserialization fails within aSerializer
instance.