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 Details

    • KryoTranscoder

      public KryoTranscoder()
    • KryoTranscoder

      public KryoTranscoder(int maxSize)
      Parameters:
      maxSize -
  • Method Details

    • asyncDecode

      public boolean asyncDecode(net.spy.memcached.CachedData d)
      Specified by:
      asyncDecode in interface net.spy.memcached.transcoders.Transcoder<T>
      Parameters:
      d -
      Returns:
      true, if successful
    • encode

      public net.spy.memcached.CachedData encode(T o)
      Specified by:
      encode in interface net.spy.memcached.transcoders.Transcoder<T>
      Parameters:
      o -
      Returns:
    • decode

      public T decode(net.spy.memcached.CachedData d)
      Specified by:
      decode in interface net.spy.memcached.transcoders.Transcoder<T>
      Parameters:
      d -
      Returns:
    • getMaxSize

      public int getMaxSize()
      Gets the max size.
      Specified by:
      getMaxSize in interface net.spy.memcached.transcoders.Transcoder<T>
      Returns: