public class SerializingTranscoder extends BaseSerializingTranscoder implements Transcoder<java.lang.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.
|
java.lang.Object |
decode(CachedData d)
Decode the cached object into the object it represents.
|
CachedData |
encode(java.lang.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<java.lang.Object>
asyncDecode
in class BaseSerializingTranscoder
public java.lang.Object decode(CachedData d)
Transcoder
decode
in interface Transcoder<java.lang.Object>
d
- the datapublic CachedData encode(java.lang.Object o)
Transcoder
encode
in interface Transcoder<java.lang.Object>
o
- the objectCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.