Class JavaSerializationEncoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.MarshallerEncoder
-
- org.infinispan.commons.dataconversion.JavaSerializationEncoder
-
- All Implemented Interfaces:
Encoder
public class JavaSerializationEncoder extends MarshallerEncoder
Encoder based on the default java serialization.- Since:
- 9.1
-
-
Constructor Summary
Constructors Constructor Description JavaSerializationEncoder(ClassWhiteList classWhiteList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaType
getStorageFormat()
Returns theMediaType
produced by this encoder or null if the storage format is not known.short
id()
Each encoder is associated with an unique id in order to optimize serialization.-
Methods inherited from class org.infinispan.commons.dataconversion.MarshallerEncoder
fromStorage, isStorageFormatFilterable, marshall, toStorage, unmarshall
-
-
-
-
Constructor Detail
-
JavaSerializationEncoder
public JavaSerializationEncoder(ClassWhiteList classWhiteList)
-
-
Method Detail
-
getStorageFormat
public MediaType getStorageFormat()
Description copied from interface:Encoder
Returns theMediaType
produced by this encoder or null if the storage format is not known.
-
id
public short id()
Description copied from interface:Encoder
Each encoder is associated with an unique id in order to optimize serialization. Known ids are kept inEncoderIds
.- Returns:
- unique identifier for this encoder
-
-