|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - value typepublic interface SerializationStrategy<T>
A cache key/value serialization strategy.
Implementation of this class are used to convert cache keys and values into detached representations that are portable across the cluster.
| Method Summary | |
|---|---|
T |
deserialize(byte[] data)
Deserialize the serialized value returning a new representation. |
T |
deserialize(byte[] data,
ClassLoader loader)
Deserialize the serialized value using the specified loader, and returning a new representation. |
String |
generateStringKeyFor(Object key)
Convert the given key into a portable String form. |
byte[] |
serialize(T value)
Serialize the given value into a detached, portable form. |
| Method Detail |
|---|
T deserialize(byte[] data)
throws IOException,
ClassNotFoundException
data - serialized form
IOException - if deserialization fails
ClassNotFoundException - if a required class is not found
T deserialize(byte[] data,
ClassLoader loader)
throws IOException,
ClassNotFoundException
data - serialized formloader - to use during deserialization
IOException - if deserialization fails
ClassNotFoundException - if a required class is not found
byte[] serialize(T value)
throws IOException
value - value to serialize
IOException - if serialization fails
String generateStringKeyFor(Object key)
throws IOException
String form.
key - key to serialize
String key
IOException - if serialization fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||