public abstract class AbstractJsonSerializer extends Object implements CacheSerializer
| Modifier and Type | Field and Description |
|---|---|
static char |
TYPE_CODE_LIST |
| Constructor and Description |
|---|
AbstractJsonSerializer() |
| Modifier and Type | Method and Description |
|---|---|
DeserializedItem |
deserialize(String serialized)
Deserialize from String
|
protected abstract Object |
fromJson(String str,
Class<?> cls,
char typeCode) |
protected String |
getClsName(Object object) |
protected char |
getType(Object obj) |
protected Object |
preProcess(Object obj) |
String |
serialize(Object obj,
long serializationTime,
long timeToLive)
Serialize
|
protected abstract String |
toJson(Object object) |
public static final char TYPE_CODE_LIST
public String serialize(Object obj, long serializationTime, long timeToLive)
CacheSerializerserialize in interface CacheSerializerobj - object to be deserializedserializationTime - time of serializationtimeToLive - item time to liveprotected char getType(Object obj)
public DeserializedItem deserialize(String serialized)
CacheSerializerdeserialize in interface CacheSerializerserialized - serialized object formCopyright © 2018. All rights reserved.