@Deprecated public class KryoSerializer extends java.lang.Object implements StoreSerializer
| Modifier and Type | Field and Description |
|---|---|
protected org.onlab.util.KryoNamespace |
serializerPool
Deprecated.
|
| Constructor and Description |
|---|
KryoSerializer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
copy(T object)
Deprecated.
Returns a copy of the specfied object.
|
<T> T |
decode(byte[] bytes)
Deprecated.
Deserializes the specified bytes into an object.
|
<T> T |
decode(java.nio.ByteBuffer buffer)
Deprecated.
Deserializes the specified bytes into an object.
|
<T> T |
decode(java.io.InputStream stream)
Deprecated.
Deserializes the specified bytes into an object.
|
byte[] |
encode(java.lang.Object obj)
Deprecated.
Serializes the specified object into bytes.
|
void |
encode(java.lang.Object obj,
java.nio.ByteBuffer buffer)
Deprecated.
Serializes the specified object into bytes.
|
void |
encode(java.lang.Object obj,
java.io.OutputStream stream)
Deprecated.
Serializes the specified object into bytes.
|
protected void |
setupKryoPool()
Deprecated.
Sets up the common serializers pool.
|
java.lang.String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitusingprotected void setupKryoPool()
public byte[] encode(java.lang.Object obj)
StoreSerializerencode in interface StoreSerializerencode in interface org.onosproject.store.service.Serializerobj - object to be serializedpublic <T> T decode(byte[] bytes)
StoreSerializerdecode in interface StoreSerializerdecode in interface org.onosproject.store.service.SerializerT - decoded typebytes - bytes to be deserializedpublic void encode(java.lang.Object obj,
java.nio.ByteBuffer buffer)
StoreSerializerencode in interface StoreSerializerobj - object to be serializedbuffer - to write serialized bytespublic <T> T decode(java.nio.ByteBuffer buffer)
StoreSerializerdecode in interface StoreSerializerT - decoded typebuffer - bytes to be deserializedpublic void encode(java.lang.Object obj,
java.io.OutputStream stream)
StoreSerializerencode in interface StoreSerializerobj - object to be serializedstream - to write serialized bytespublic <T> T decode(java.io.InputStream stream)
StoreSerializerdecode in interface StoreSerializerT - decoded typestream - stream containing the bytes to be deserializedpublic <T> T copy(T object)
StoreSerializercopy in interface StoreSerializerT - object typeobject - object to copypublic java.lang.String toString()
toString in class java.lang.Object