Package net.spy.memcached.transcoders
Class IntegerTranscoder
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.transcoders.IntegerTranscoder
- All Implemented Interfaces:
Transcoder<Integer>
Transcoder that serializes and unserializes longs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould the transcoder be run asyncronously.decode(CachedData d) Decode the cached object into the object it represents.Encode the given object for storage.intGet the maximum size of objects handled by this transcoder.
-
Constructor Details
-
IntegerTranscoder
public IntegerTranscoder()
-
-
Method Details
-
asyncDecode
Description copied from interface:TranscoderShould the transcoder be run asyncronously.- Specified by:
asyncDecodein interfaceTranscoder<Integer>- Returns:
- True if the CachedData should be decoded Asyncronously
-
encode
Description copied from interface:TranscoderEncode the given object for storage.- Specified by:
encodein interfaceTranscoder<Integer>- Parameters:
l- the object- Returns:
- the CachedData representing what should be sent
-
decode
Description copied from interface:TranscoderDecode the cached object into the object it represents.- Specified by:
decodein interfaceTranscoder<Integer>- Parameters:
d- the data- Returns:
- the return value
-
getMaxSize
public int getMaxSize()Description copied from interface:TranscoderGet the maximum size of objects handled by this transcoder.- Specified by:
getMaxSizein interfaceTranscoder<Integer>
-