public final class LongTranscoder extends SpyObject implements Transcoder<java.lang.Long>
Constructor and Description |
---|
LongTranscoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
asyncDecode(CachedData d)
Should the transcoder be run asyncronously.
|
java.lang.Long |
decode(CachedData d)
Decode the cached object into the object it represents.
|
CachedData |
encode(java.lang.Long l)
Encode the given object for storage.
|
int |
getMaxSize()
Get the maximum size of objects handled by this transcoder.
|
public boolean asyncDecode(CachedData d)
Transcoder
asyncDecode
in interface Transcoder<java.lang.Long>
public CachedData encode(java.lang.Long l)
Transcoder
encode
in interface Transcoder<java.lang.Long>
l
- the objectpublic java.lang.Long decode(CachedData d)
Transcoder
decode
in interface Transcoder<java.lang.Long>
d
- the datapublic int getMaxSize()
Transcoder
getMaxSize
in interface Transcoder<java.lang.Long>
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.