2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public final class

KryoSerializer

extends Object
implements Closeable Serializer
java.lang.Object
   ↳ org.apache.directmemory.serialization.kryo.KryoSerializer

Summary

Nested Classes
class KryoSerializer.KryoPool  
Public Constructors
KryoSerializer(KryoSerializer.KryoPool pool)
KryoSerializer()
Public Methods
void close()
Closes the pool releasing any associated Kryo instance with it
<T> T deserialize(byte[] source, Class<T> clazz)
<T> byte[] serialize(T obj)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.io.Closeable
From interface org.apache.directmemory.serialization.Serializer

Public Constructors

public KryoSerializer (KryoSerializer.KryoPool pool)

public KryoSerializer ()

Public Methods

public void close ()

Closes the pool releasing any associated Kryo instance with it

Throws
IOException

public T deserialize (byte[] source, Class<T> clazz)

public byte[] serialize (T obj)

Throws
IOException