|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.spy.memcached.compat.SpyObject net.spy.memcached.transcoders.LongTranscoder
public final class LongTranscoder
Transcoder that serializes and unserializes longs.
Constructor Summary | |
---|---|
LongTranscoder()
|
Method Summary | |
---|---|
boolean |
asyncDecode(CachedData d)
Should the transcoder be run asyncronously. |
Long |
decode(CachedData d)
Decode the cached object into the object it represents. |
CachedData |
encode(Long l)
Encode the given object for storage. |
int |
getMaxSize()
Get the maximum size of objects handled by this transcoder. |
Methods inherited from class net.spy.memcached.compat.SpyObject |
---|
getLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongTranscoder()
Method Detail |
---|
public boolean asyncDecode(CachedData d)
Transcoder
asyncDecode
in interface Transcoder<Long>
public CachedData encode(Long l)
Transcoder
encode
in interface Transcoder<Long>
l
- the object
public Long decode(CachedData d)
Transcoder
decode
in interface Transcoder<Long>
d
- the data
public int getMaxSize()
Transcoder
getMaxSize
in interface Transcoder<Long>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |