Package net.spy.memcached.transcoders
Class LongTranscoder
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.transcoders.LongTranscoder
- All Implemented Interfaces:
Transcoder<Long>
Transcoder that serializes and unserializes longs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Should the transcoder be run asyncronously.decode
(CachedData d) Decode the cached object into the object it represents.Encode the given object for storage.int
Get the maximum size of objects handled by this transcoder.
-
Field Details
-
FLAGS
private static final int FLAGS- See Also:
-
tu
-
-
Constructor Details
-
LongTranscoder
public LongTranscoder()
-
-
Method Details
-
asyncDecode
Description copied from interface:Transcoder
Should the transcoder be run asyncronously.- Specified by:
asyncDecode
in interfaceTranscoder<Long>
- Returns:
- True if the CachedData should be decoded Asyncronously
-
encode
Description copied from interface:Transcoder
Encode the given object for storage.- Specified by:
encode
in interfaceTranscoder<Long>
- Parameters:
l
- the object- Returns:
- the CachedData representing what should be sent
-
decode
Description copied from interface:Transcoder
Decode the cached object into the object it represents.- Specified by:
decode
in interfaceTranscoder<Long>
- Parameters:
d
- the data- Returns:
- the return value
-
getMaxSize
public int getMaxSize()Description copied from interface:Transcoder
Get the maximum size of objects handled by this transcoder.- Specified by:
getMaxSize
in interfaceTranscoder<Long>
-