public class KryoTranscoder extends Object implements SessionAttributesTranscoder
SessionAttributesTranscoder that uses Kryo for serialization.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_BUFFER_SIZE |
static int |
DEFAULT_MAX_BUFFER_SIZE |
static String |
DEFAULT_SERIALIZER_FACTORY_CLASS |
| Constructor and Description |
|---|
KryoTranscoder() |
KryoTranscoder(ClassLoader classLoader,
String[] customConverterClassNames,
boolean copyCollectionsForSerialization) |
KryoTranscoder(ClassLoader classLoader,
String[] customConverterClassNames,
boolean copyCollectionsForSerialization,
int initialBufferSize,
int maxBufferSize,
String defaultSerializerFactoryClass) |
| Modifier and Type | Method and Description |
|---|---|
protected com.esotericsoftware.kryo.Kryo |
createKryo(com.esotericsoftware.kryo.ClassResolver classResolver,
com.esotericsoftware.kryo.ReferenceResolver referenceResolver,
com.esotericsoftware.kryo.StreamFactory streamFactory,
ClassLoader classLoader,
String[] customConverterClassNames,
boolean copyCollectionsForSerialization) |
Map<String,Object> |
deserializeAttributes(byte[] data) |
protected KryoDefaultSerializerFactory |
loadDefaultSerializerFactory(ClassLoader classLoader,
String defaultSerializerFactoryClass) |
byte[] |
serializeAttributes(MemcachedBackupSession session,
Map<String,Object> attributes) |
public static final int DEFAULT_INITIAL_BUFFER_SIZE
public static final int DEFAULT_MAX_BUFFER_SIZE
public static final String DEFAULT_SERIALIZER_FACTORY_CLASS
public KryoTranscoder()
public KryoTranscoder(ClassLoader classLoader, String[] customConverterClassNames, boolean copyCollectionsForSerialization)
public KryoTranscoder(ClassLoader classLoader, String[] customConverterClassNames, boolean copyCollectionsForSerialization, int initialBufferSize, int maxBufferSize, String defaultSerializerFactoryClass)
protected KryoDefaultSerializerFactory loadDefaultSerializerFactory(ClassLoader classLoader, String defaultSerializerFactoryClass)
protected com.esotericsoftware.kryo.Kryo createKryo(com.esotericsoftware.kryo.ClassResolver classResolver,
com.esotericsoftware.kryo.ReferenceResolver referenceResolver,
com.esotericsoftware.kryo.StreamFactory streamFactory,
ClassLoader classLoader,
String[] customConverterClassNames,
boolean copyCollectionsForSerialization)
public Map<String,Object> deserializeAttributes(byte[] data)
deserializeAttributes in interface SessionAttributesTranscoderpublic byte[] serializeAttributes(MemcachedBackupSession session, Map<String,Object> attributes)
serializeAttributes in interface SessionAttributesTranscoderCopyright © 2009-2016. All Rights Reserved.