Package com.landawn.abacus.cache
Class KryoTranscoder<T>
java.lang.Object
com.landawn.abacus.cache.KryoTranscoder<T>
- Type Parameters:
T-
- All Implemented Interfaces:
net.spy.memcached.transcoders.Transcoder<T>
public class KryoTranscoder<T>
extends Object
implements net.spy.memcached.transcoders.Transcoder<T>
- Since:
- 0.8
- Author:
- Haiyang Li
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanasyncDecode(net.spy.memcached.CachedData d) decode(net.spy.memcached.CachedData d) net.spy.memcached.CachedDataintGets the max size.
-
Constructor Details
-
KryoTranscoder
public KryoTranscoder() -
KryoTranscoder
public KryoTranscoder(int maxSize) - Parameters:
maxSize-
-
-
Method Details
-
asyncDecode
public boolean asyncDecode(net.spy.memcached.CachedData d) - Specified by:
asyncDecodein interfacenet.spy.memcached.transcoders.Transcoder<T>- Parameters:
d-- Returns:
- true, if successful
-
encode
- Specified by:
encodein interfacenet.spy.memcached.transcoders.Transcoder<T>- Parameters:
o-- Returns:
-
decode
- Specified by:
decodein interfacenet.spy.memcached.transcoders.Transcoder<T>- Parameters:
d-- Returns:
-
getMaxSize
public int getMaxSize()Gets the max size.- Specified by:
getMaxSizein interfacenet.spy.memcached.transcoders.Transcoder<T>- Returns:
-