Modifier and Type | Method and Description |
---|---|
T |
KryoCopyable.copy(Kryo kryo)
Returns a copy that has the same values as this object.
|
T |
Serializer.copy(Kryo kryo,
T original)
Returns a copy of the specified object.
|
void |
KryoSerializable.read(Kryo kryo,
Input input) |
abstract T |
Serializer.read(Kryo kryo,
Input input,
Class<T> type)
Reads bytes and returns a new object of the specified concrete type.
|
void |
Serializer.setGenerics(Kryo kryo,
Class[] generics)
Sets the generic types of the field or method this serializer will be used for on the next call to read or write.
|
void |
StreamFactory.setKryo(Kryo kryo) |
void |
ReferenceResolver.setKryo(Kryo kryo)
Sets the Kryo instance that this ClassResolver will be used for.
|
void |
ClassResolver.setKryo(Kryo kryo)
Sets the Kryo instance that this ClassResolver will be used for.
|
void |
KryoSerializable.write(Kryo kryo,
Output output) |
abstract void |
Serializer.write(Kryo kryo,
Output output,
T object)
Writes the bytes for the object to the output.
|
Modifier and Type | Method and Description |
---|---|
Serializer |
PseudoSerializerFactory.makeSerializer(Kryo kryo,
Class<?> type) |
Serializer |
SerializerFactory.makeSerializer(Kryo kryo,
Class<?> type)
Creates a new serializer
|
Serializer |
ReflectionSerializerFactory.makeSerializer(Kryo kryo,
Class<?> type) |
static Serializer |
ReflectionSerializerFactory.makeSerializer(Kryo kryo,
Class<? extends Serializer> serializerClass,
Class<?> type)
Creates a new instance of the specified serializer for serializing the specified class.
|
Constructor and Description |
---|
KryoObjectInput(Kryo kryo,
Input in) |
KryoObjectOutput(Kryo kryo,
Output output) |
Modifier and Type | Method and Description |
---|---|
Kryo |
KryoPool.borrow()
Takes a
Kryo instance from the pool or creates a new one (using the factory) if the pool is empty. |
Kryo |
KryoFactory.create() |
Modifier and Type | Method and Description |
---|---|
T |
KryoCallback.execute(Kryo kryo) |
void |
KryoPool.release(Kryo kryo)
Returns the given
Kryo instance to the pool. |
Modifier and Type | Method and Description |
---|---|
KryoPool.Builder |
KryoPool.Builder.queue(Queue<Kryo> queue)
Use the given queue for pooling kryo instances (by default a
ConcurrentLinkedQueue is used). |
Modifier and Type | Method and Description |
---|---|
Kryo |
FieldSerializer.getKryo() |
Modifier and Type | Method and Description |
---|---|
static void |
TimeSerializers.addDefaultSerializers(Kryo kryo) |
static void |
OptionalSerializers.addDefaultSerializers(Kryo kryo) |
boolean[] |
DefaultArraySerializers.BooleanArraySerializer.copy(Kryo kryo,
boolean[] original) |
byte[] |
DefaultArraySerializers.ByteArraySerializer.copy(Kryo kryo,
byte[] original) |
Calendar |
DefaultSerializers.CalendarSerializer.copy(Kryo kryo,
Calendar original) |
char[] |
DefaultArraySerializers.CharArraySerializer.copy(Kryo kryo,
char[] original) |
Collection |
CollectionSerializer.copy(Kryo kryo,
Collection original) |
Date |
DefaultSerializers.DateSerializer.copy(Kryo kryo,
Date original) |
double[] |
DefaultArraySerializers.DoubleArraySerializer.copy(Kryo kryo,
double[] original) |
EnumSet |
DefaultSerializers.EnumSetSerializer.copy(Kryo kryo,
EnumSet original) |
float[] |
DefaultArraySerializers.FloatArraySerializer.copy(Kryo kryo,
float[] original) |
int[] |
DefaultArraySerializers.IntArraySerializer.copy(Kryo kryo,
int[] original) |
long[] |
DefaultArraySerializers.LongArraySerializer.copy(Kryo kryo,
long[] original) |
Map |
MapSerializer.copy(Kryo kryo,
Map original) |
Object |
ClosureSerializer.copy(Kryo kryo,
Object original) |
Object |
DeflateSerializer.copy(Kryo kryo,
Object original) |
Object |
BlowfishSerializer.copy(Kryo kryo,
Object original) |
Object[] |
DefaultArraySerializers.ObjectArraySerializer.copy(Kryo kryo,
Object[] original) |
short[] |
DefaultArraySerializers.ShortArraySerializer.copy(Kryo kryo,
short[] original) |
String[] |
DefaultArraySerializers.StringArraySerializer.copy(Kryo kryo,
String[] original) |
StringBuffer |
DefaultSerializers.StringBufferSerializer.copy(Kryo kryo,
StringBuffer original) |
StringBuilder |
DefaultSerializers.StringBuilderSerializer.copy(Kryo kryo,
StringBuilder original) |
T |
BeanSerializer.copy(Kryo kryo,
T original) |
T |
FieldSerializer.copy(Kryo kryo,
T original) |
protected TreeSet |
DefaultSerializers.TreeSetSerializer.create(Kryo kryo,
Input input,
Class<Collection> type) |
protected Collection |
CollectionSerializer.create(Kryo kryo,
Input input,
Class<Collection> type)
Used by
CollectionSerializer.read(Kryo, Input, Class) to create the new object. |
protected Map |
DefaultSerializers.TreeMapSerializer.create(Kryo kryo,
Input input,
Class<Map> type) |
protected Map |
MapSerializer.create(Kryo kryo,
Input input,
Class<Map> type)
Used by
MapSerializer.read(Kryo, Input, Class) to create the new object. |
protected T |
FieldSerializer.create(Kryo kryo,
Input input,
Class<T> type)
Used by
FieldSerializer.read(Kryo, Input, Class) to create the new object. |
protected TreeSet |
DefaultSerializers.TreeSetSerializer.createCopy(Kryo kryo,
Collection original) |
protected Collection |
CollectionSerializer.createCopy(Kryo kryo,
Collection original)
Used by
CollectionSerializer.copy(Kryo, Collection) to create the new object. |
protected Map |
DefaultSerializers.TreeMapSerializer.createCopy(Kryo kryo,
Map original) |
protected Map |
MapSerializer.createCopy(Kryo kryo,
Map original) |
protected T |
FieldSerializer.createCopy(Kryo kryo,
T original)
Used by
FieldSerializer.copy(Kryo, Object) to create the new object. |
Object |
ClosureSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DeflateSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
BlowfishSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
ExternalizableSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.VoidSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.CollectionsEmptyListSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.CollectionsEmptyMapSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
DefaultSerializers.CollectionsEmptySetSerializer.read(Kryo kryo,
Input input,
Class type) |
List |
DefaultSerializers.CollectionsSingletonListSerializer.read(Kryo kryo,
Input input,
Class type) |
Map |
DefaultSerializers.CollectionsSingletonMapSerializer.read(Kryo kryo,
Input input,
Class type) |
Set |
DefaultSerializers.CollectionsSingletonSetSerializer.read(Kryo kryo,
Input input,
Class type) |
Object |
JavaSerializer.read(Kryo kryo,
Input input,
Class type) |
BigDecimal |
DefaultSerializers.BigDecimalSerializer.read(Kryo kryo,
Input input,
Class<BigDecimal> type) |
BigInteger |
DefaultSerializers.BigIntegerSerializer.read(Kryo kryo,
Input input,
Class<BigInteger> type) |
boolean[] |
DefaultArraySerializers.BooleanArraySerializer.read(Kryo kryo,
Input input,
Class<boolean[]> type) |
Boolean |
DefaultSerializers.BooleanSerializer.read(Kryo kryo,
Input input,
Class<Boolean> type) |
byte[] |
DefaultArraySerializers.ByteArraySerializer.read(Kryo kryo,
Input input,
Class<byte[]> type) |
Byte |
DefaultSerializers.ByteSerializer.read(Kryo kryo,
Input input,
Class<Byte> type) |
Calendar |
DefaultSerializers.CalendarSerializer.read(Kryo kryo,
Input input,
Class<Calendar> type) |
char[] |
DefaultArraySerializers.CharArraySerializer.read(Kryo kryo,
Input input,
Class<char[]> type) |
Character |
DefaultSerializers.CharSerializer.read(Kryo kryo,
Input input,
Class<Character> type) |
Charset |
DefaultSerializers.CharsetSerializer.read(Kryo kryo,
Input input,
Class<Charset> type) |
Class |
DefaultSerializers.ClassSerializer.read(Kryo kryo,
Input input,
Class<Class> type) |
Collection |
CollectionSerializer.read(Kryo kryo,
Input input,
Class<Collection> type) |
Currency |
DefaultSerializers.CurrencySerializer.read(Kryo kryo,
Input input,
Class<Currency> type) |
Date |
DefaultSerializers.DateSerializer.read(Kryo kryo,
Input input,
Class<Date> type) |
double[] |
DefaultArraySerializers.DoubleArraySerializer.read(Kryo kryo,
Input input,
Class<double[]> type) |
Double |
DefaultSerializers.DoubleSerializer.read(Kryo kryo,
Input input,
Class<Double> type) |
Enum |
EnumNameSerializer.read(Kryo kryo,
Input input,
Class<Enum> type) |
Enum |
DefaultSerializers.EnumSerializer.read(Kryo kryo,
Input input,
Class<Enum> type) |
EnumSet |
DefaultSerializers.EnumSetSerializer.read(Kryo kryo,
Input input,
Class<EnumSet> type) |
float[] |
DefaultArraySerializers.FloatArraySerializer.read(Kryo kryo,
Input input,
Class<float[]> type) |
Float |
DefaultSerializers.FloatSerializer.read(Kryo kryo,
Input input,
Class<Float> type) |
int[] |
DefaultArraySerializers.IntArraySerializer.read(Kryo kryo,
Input input,
Class<int[]> type) |
Integer |
DefaultSerializers.IntSerializer.read(Kryo kryo,
Input input,
Class<Integer> type) |
KryoSerializable |
DefaultSerializers.KryoSerializableSerializer.read(Kryo kryo,
Input input,
Class<KryoSerializable> type) |
Locale |
DefaultSerializers.LocaleSerializer.read(Kryo kryo,
Input input,
Class<Locale> type) |
long[] |
DefaultArraySerializers.LongArraySerializer.read(Kryo kryo,
Input input,
Class<long[]> type) |
Long |
DefaultSerializers.LongSerializer.read(Kryo kryo,
Input input,
Class<Long> type) |
Map |
MapSerializer.read(Kryo kryo,
Input input,
Class<Map> type) |
Object[] |
DefaultArraySerializers.ObjectArraySerializer.read(Kryo kryo,
Input input,
Class<Object[]> type) |
short[] |
DefaultArraySerializers.ShortArraySerializer.read(Kryo kryo,
Input input,
Class<short[]> type) |
Short |
DefaultSerializers.ShortSerializer.read(Kryo kryo,
Input input,
Class<Short> type) |
String[] |
DefaultArraySerializers.StringArraySerializer.read(Kryo kryo,
Input input,
Class<String[]> type) |
String |
DefaultSerializers.StringSerializer.read(Kryo kryo,
Input input,
Class<String> type) |
StringBuffer |
DefaultSerializers.StringBufferSerializer.read(Kryo kryo,
Input input,
Class<StringBuffer> type) |
StringBuilder |
DefaultSerializers.StringBuilderSerializer.read(Kryo kryo,
Input input,
Class<StringBuilder> type) |
T |
VersionFieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
CompatibleFieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
BeanSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
TaggedFieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
T |
FieldSerializer.read(Kryo kryo,
Input input,
Class<T> type) |
TimeZone |
DefaultSerializers.TimeZoneSerializer.read(Kryo kryo,
Input input,
Class<TimeZone> type) |
URL |
DefaultSerializers.URLSerializer.read(Kryo kryo,
Input input,
Class<URL> type) |
void |
DefaultArraySerializers.ObjectArraySerializer.setGenerics(Kryo kryo,
Class[] generics) |
void |
MapSerializer.setGenerics(Kryo kryo,
Class[] generics) |
void |
CollectionSerializer.setGenerics(Kryo kryo,
Class[] generics) |
void |
FieldSerializer.setGenerics(Kryo kryo,
Class[] generics) |
void |
DefaultSerializers.BigDecimalSerializer.write(Kryo kryo,
Output output,
BigDecimal object) |
void |
DefaultSerializers.BigIntegerSerializer.write(Kryo kryo,
Output output,
BigInteger object) |
void |
DefaultSerializers.BooleanSerializer.write(Kryo kryo,
Output output,
Boolean object) |
void |
DefaultArraySerializers.BooleanArraySerializer.write(Kryo kryo,
Output output,
boolean[] object) |
void |
DefaultSerializers.ByteSerializer.write(Kryo kryo,
Output output,
Byte object) |
void |
DefaultArraySerializers.ByteArraySerializer.write(Kryo kryo,
Output output,
byte[] object) |
void |
DefaultSerializers.CalendarSerializer.write(Kryo kryo,
Output output,
Calendar object) |
void |
DefaultArraySerializers.CharArraySerializer.write(Kryo kryo,
Output output,
char[] object) |
void |
DefaultSerializers.CharSerializer.write(Kryo kryo,
Output output,
Character object) |
void |
DefaultSerializers.CharsetSerializer.write(Kryo kryo,
Output output,
Charset object) |
void |
DefaultSerializers.ClassSerializer.write(Kryo kryo,
Output output,
Class object) |
void |
DefaultSerializers.TreeSetSerializer.write(Kryo kryo,
Output output,
Collection collection) |
void |
CollectionSerializer.write(Kryo kryo,
Output output,
Collection collection) |
void |
DefaultSerializers.CurrencySerializer.write(Kryo kryo,
Output output,
Currency object) |
void |
DefaultSerializers.DateSerializer.write(Kryo kryo,
Output output,
Date object) |
void |
DefaultSerializers.DoubleSerializer.write(Kryo kryo,
Output output,
Double object) |
void |
DefaultArraySerializers.DoubleArraySerializer.write(Kryo kryo,
Output output,
double[] object) |
void |
EnumNameSerializer.write(Kryo kryo,
Output output,
Enum object) |
void |
DefaultSerializers.EnumSerializer.write(Kryo kryo,
Output output,
Enum object) |
void |
DefaultSerializers.EnumSetSerializer.write(Kryo kryo,
Output output,
EnumSet object) |
void |
DefaultSerializers.FloatSerializer.write(Kryo kryo,
Output output,
Float object) |
void |
DefaultArraySerializers.FloatArraySerializer.write(Kryo kryo,
Output output,
float[] object) |
void |
DefaultArraySerializers.IntArraySerializer.write(Kryo kryo,
Output output,
int[] object) |
void |
DefaultSerializers.IntSerializer.write(Kryo kryo,
Output output,
Integer object) |
void |
DefaultSerializers.KryoSerializableSerializer.write(Kryo kryo,
Output output,
KryoSerializable object) |
void |
DefaultSerializers.CollectionsSingletonListSerializer.write(Kryo kryo,
Output output,
List object) |
void |
DefaultSerializers.LocaleSerializer.write(Kryo kryo,
Output output,
Locale l) |
void |
DefaultSerializers.LongSerializer.write(Kryo kryo,
Output output,
Long object) |
void |
DefaultArraySerializers.LongArraySerializer.write(Kryo kryo,
Output output,
long[] object) |
void |
DefaultSerializers.CollectionsSingletonMapSerializer.write(Kryo kryo,
Output output,
Map object) |
void |
DefaultSerializers.TreeMapSerializer.write(Kryo kryo,
Output output,
Map map) |
void |
MapSerializer.write(Kryo kryo,
Output output,
Map map) |
void |
ClosureSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
DeflateSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
BlowfishSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
ExternalizableSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
DefaultSerializers.VoidSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
DefaultSerializers.CollectionsEmptyListSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
DefaultSerializers.CollectionsEmptyMapSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
DefaultSerializers.CollectionsEmptySetSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
JavaSerializer.write(Kryo kryo,
Output output,
Object object) |
void |
DefaultArraySerializers.ObjectArraySerializer.write(Kryo kryo,
Output output,
Object[] object) |
void |
DefaultSerializers.CollectionsSingletonSetSerializer.write(Kryo kryo,
Output output,
Set object) |
void |
DefaultSerializers.ShortSerializer.write(Kryo kryo,
Output output,
Short object) |
void |
DefaultArraySerializers.ShortArraySerializer.write(Kryo kryo,
Output output,
short[] object) |
void |
DefaultSerializers.StringSerializer.write(Kryo kryo,
Output output,
String object) |
void |
DefaultArraySerializers.StringArraySerializer.write(Kryo kryo,
Output output,
String[] object) |
void |
DefaultSerializers.StringBufferSerializer.write(Kryo kryo,
Output output,
StringBuffer object) |
void |
DefaultSerializers.StringBuilderSerializer.write(Kryo kryo,
Output output,
StringBuilder object) |
void |
VersionFieldSerializer.write(Kryo kryo,
Output output,
T object) |
void |
CompatibleFieldSerializer.write(Kryo kryo,
Output output,
T object) |
void |
BeanSerializer.write(Kryo kryo,
Output output,
T object) |
void |
TaggedFieldSerializer.write(Kryo kryo,
Output output,
T object) |
void |
FieldSerializer.write(Kryo kryo,
Output output,
T object)
This method can be called for different fields having the same type.
|
void |
DefaultSerializers.TimeZoneSerializer.write(Kryo kryo,
Output output,
TimeZone object) |
void |
DefaultSerializers.URLSerializer.write(Kryo kryo,
Output output,
URL object) |
Constructor and Description |
---|
BeanSerializer(Kryo kryo,
Class type) |
CompatibleFieldSerializer(Kryo kryo,
Class type) |
EnumNameSerializer(Kryo kryo,
Class<? extends Enum> type) |
FieldSerializer(Kryo kryo,
Class type) |
FieldSerializer(Kryo kryo,
Class type,
Class[] generics) |
FieldSerializer(Kryo kryo,
Class type,
Class[] generics,
FieldSerializerConfig config) |
ObjectArraySerializer(Kryo kryo,
Class type) |
TaggedFieldSerializer(Kryo kryo,
Class type) |
VersionFieldSerializer(Kryo kryo,
Class type) |
VersionFieldSerializer(Kryo kryo,
Class type,
boolean compatible) |
Modifier and Type | Field and Description |
---|---|
protected Kryo |
MapReferenceResolver.kryo |
protected Kryo |
DefaultClassResolver.kryo |
protected Kryo |
ListReferenceResolver.kryo |
Modifier and Type | Method and Description |
---|---|
void |
FastestStreamFactory.setKryo(Kryo kryo) |
void |
MapReferenceResolver.setKryo(Kryo kryo) |
void |
DefaultStreamFactory.setKryo(Kryo kryo) |
void |
DefaultClassResolver.setKryo(Kryo kryo) |
void |
ListReferenceResolver.setKryo(Kryo kryo) |
Copyright © 2018. All rights reserved.