de.javakaffee.web.msm.serializer.kryo
Class KryoTranscoder
java.lang.Object
de.javakaffee.web.msm.serializer.kryo.KryoTranscoder
- All Implemented Interfaces:
- SessionAttributesTranscoder
public class KryoTranscoder
- extends Object
- implements SessionAttributesTranscoder
A SessionAttributesTranscoder that uses Kryo for serialization.
- Author:
- Martin Grotzke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INITIAL_BUFFER_SIZE
public static final int DEFAULT_INITIAL_BUFFER_SIZE
- See Also:
- Constant Field Values
DEFAULT_MAX_BUFFER_SIZE
public static final int DEFAULT_MAX_BUFFER_SIZE
- See Also:
- Constant Field Values
KryoTranscoder
public KryoTranscoder()
KryoTranscoder
public KryoTranscoder(ClassLoader classLoader,
String[] customConverterClassNames,
boolean copyCollectionsForSerialization)
- Parameters:
classLoader - copyCollectionsForSerialization - customConverterClassNames -
KryoTranscoder
public KryoTranscoder(ClassLoader classLoader,
String[] customConverterClassNames,
boolean copyCollectionsForSerialization,
int initialBufferSize,
int maxBufferSize)
- Parameters:
classLoader - copyCollectionsForSerialization - customConverterClassNames -
deserializeAttributes
public Map<String,Object> deserializeAttributes(byte[] data)
-
- Specified by:
deserializeAttributes in interface SessionAttributesTranscoder
serializeAttributes
public byte[] serializeAttributes(MemcachedBackupSession session,
Map<String,Object> attributes)
-
- Specified by:
serializeAttributes in interface SessionAttributesTranscoder
Copyright © 2009-2012. All Rights Reserved.