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, setCompressionThresholdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxSizepublic SerializingTranscoder()
public SerializingTranscoder(int max)
public boolean asyncDecode(CachedData d)
TranscoderasyncDecode in interface Transcoder<java.lang.Object>asyncDecode in class BaseSerializingTranscoderpublic java.lang.Object decode(CachedData d)
Transcoderdecode in interface Transcoder<java.lang.Object>d - the datapublic CachedData encode(java.lang.Object o)
Transcoderencode in interface Transcoder<java.lang.Object>o - the objectCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.