Class LongTranscoder
- java.lang.Object
-
- net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
-
- net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder<java.lang.Long>
-
- net.rubyeye.xmemcached.transcoders.LongTranscoder
-
- All Implemented Interfaces:
Transcoder<java.lang.Long>
public final class LongTranscoder extends PrimitiveTypeTranscoder<java.lang.Long>
Transcoder that serializes and unserializes longs.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
log
-
Fields inherited from class net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder
primitiveAsString, tu
-
Fields inherited from class net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
charset, COMPRESS_RATIO, compressionThreshold, compressMode, DEFAULT_CHARSET, DEFAULT_COMPRESSION_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description LongTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class net.rubyeye.xmemcached.transcoders.PrimitiveTypeTranscoder
isPackZeros, isPrimitiveAsString, setPackZeros, setPrimitiveAsString
-
Methods inherited from class net.rubyeye.xmemcached.transcoders.BaseSerializingTranscoder
compress, decodeString, decompress, deserialize, encodeString, getCompressMode, serialize, setCharset, setCompressionMode, setCompressionThreshold
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.rubyeye.xmemcached.transcoders.Transcoder
setCompressionMode, setCompressionThreshold
-
-
-
-
Method Detail
-
encode
public CachedData encode(java.lang.Long l)
Description copied from interface:Transcoder
Encode the given object for storage.- Parameters:
l
- the object- Returns:
- the CachedData representing what should be sent
-
decode
public java.lang.Long decode(CachedData d)
Description copied from interface:Transcoder
Decode the cached object into the object it represents.- Parameters:
d
- the data- Returns:
- the return value
-
-