public class SerializingTranscoder extends BaseSerializingTranscoder implements Transcoder<Object>
charset, compressionThreshold, DEFAULT_COMPRESSION_THRESHOLD
Constructor and Description |
---|
SerializingTranscoder()
Get a serializing transcoder with the default max data size.
|
SerializingTranscoder(int max)
Get a serializing transcoder that specifies the max data size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asyncDecode(CachedData d)
Should the transcoder be run asyncronously.
|
Object |
decode(CachedData d)
Decode the cached object into the object it represents.
|
CachedData |
encode(Object o)
Encode the given object for storage.
|
compress, decodeString, decompress, deserialize, encodeString, getMaxSize, serialize, setCharset, setCompressionThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxSize
public SerializingTranscoder()
public SerializingTranscoder(int max)
public boolean asyncDecode(CachedData d)
Transcoder
asyncDecode
in interface Transcoder<Object>
asyncDecode
in class BaseSerializingTranscoder
public Object decode(CachedData d)
Transcoder
decode
in interface Transcoder<Object>
d
- the datapublic CachedData encode(Object o)
Transcoder
encode
in interface Transcoder<Object>
o
- the objectCopyright © 2022. All rights reserved.