Annotation Type FieldSerializer.Bind
-
@Retention(RUNTIME) @Target(FIELD) public static @interface FieldSerializer.Bind
Used to annotate fields with a specific Kryo serializer.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
canBeNull
boolean
optimizePositive
java.lang.Class<? extends Serializer>
serializer
The serializer class to serialize the annotated field, which will be created by theserializerFactory()
.java.lang.Class<? extends SerializerFactory>
serializerFactory
The factory used to create the serializer.java.lang.Class
valueClass
boolean
variableLengthEncoding
-
-
-
-
serializer
java.lang.Class<? extends Serializer> serializer
The serializer class to serialize the annotated field, which will be created by theserializerFactory()
. Can be omitted if the serializer factory knows what type of serializer to create.- Default:
- com.esotericsoftware.kryo.Serializer.class
-
-
-
serializerFactory
java.lang.Class<? extends SerializerFactory> serializerFactory
The factory used to create the serializer.- Default:
- com.esotericsoftware.kryo.SerializerFactory.class
-
-