public abstract class AbstractSerializationService extends Object implements SerializationService
Modifier and Type | Field and Description |
---|---|
protected BufferPoolThreadLocal |
bufferPoolThreadLocal |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
dataSerializerAdapter |
protected PartitioningStrategy |
globalPartitioningStrategy |
protected InputOutputFactory |
inputOutputFactory |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
javaExternalizableAdapter |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
javaSerializerAdapter |
protected ManagedContext |
managedContext |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
nullSerializerAdapter |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
portableSerializerAdapter |
VERSION_1
Modifier and Type | Method and Description |
---|---|
protected int |
calculatePartitionHash(Object obj,
PartitioningStrategy strategy) |
BufferObjectDataInput |
createObjectDataInput(byte[] data) |
BufferObjectDataInput |
createObjectDataInput(Data data) |
BufferObjectDataOutput |
createObjectDataOutput() |
BufferObjectDataOutput |
createObjectDataOutput(int size) |
void |
destroy() |
void |
disposeData(Data data) |
ByteOrder |
getByteOrder() |
ClassLoader |
getClassLoader() |
ManagedContext |
getManagedContext() |
byte |
getVersion() |
<T> T |
readObject(ObjectDataInput in) |
void |
register(Class type,
Serializer serializer) |
protected void |
registerConstant(Class type,
Serializer serializer) |
protected void |
registerConstant(Class type,
com.hazelcast.internal.serialization.impl.SerializerAdapter serializer) |
void |
registerGlobal(Serializer serializer) |
void |
registerGlobal(Serializer serializer,
boolean overrideJavaSerialization) |
protected boolean |
safeRegister(Class type,
Serializer serializer) |
protected boolean |
safeRegister(Class type,
com.hazelcast.internal.serialization.impl.SerializerAdapter serializer) |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
serializerFor(int typeId) |
protected com.hazelcast.internal.serialization.impl.SerializerAdapter |
serializerFor(Object object) |
byte[] |
toBytes(Object obj) |
byte[] |
toBytes(Object obj,
PartitioningStrategy strategy) |
Data |
toData(Object obj) |
Data |
toData(Object obj,
PartitioningStrategy strategy) |
<T> T |
toObject(Object object) |
void |
writeObject(ObjectDataOutput out,
Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPortableReader, getPortableContext
protected final ManagedContext managedContext
protected final InputOutputFactory inputOutputFactory
protected final PartitioningStrategy globalPartitioningStrategy
protected final BufferPoolThreadLocal bufferPoolThreadLocal
protected com.hazelcast.internal.serialization.impl.SerializerAdapter dataSerializerAdapter
protected com.hazelcast.internal.serialization.impl.SerializerAdapter portableSerializerAdapter
protected final com.hazelcast.internal.serialization.impl.SerializerAdapter nullSerializerAdapter
protected com.hazelcast.internal.serialization.impl.SerializerAdapter javaSerializerAdapter
protected com.hazelcast.internal.serialization.impl.SerializerAdapter javaExternalizableAdapter
public final Data toData(Object obj)
toData
in interface SerializationService
public final Data toData(Object obj, PartitioningStrategy strategy)
toData
in interface SerializationService
public byte[] toBytes(Object obj)
toBytes
in interface SerializationService
public byte[] toBytes(Object obj, PartitioningStrategy strategy)
toBytes
in interface SerializationService
public final <T> T toObject(Object object)
toObject
in interface SerializationService
public final void writeObject(ObjectDataOutput out, Object obj)
writeObject
in interface SerializationService
public final <T> T readObject(ObjectDataInput in)
readObject
in interface SerializationService
public void disposeData(Data data)
disposeData
in interface SerializationService
public final BufferObjectDataInput createObjectDataInput(byte[] data)
createObjectDataInput
in interface SerializationService
public final BufferObjectDataInput createObjectDataInput(Data data)
createObjectDataInput
in interface SerializationService
public final BufferObjectDataOutput createObjectDataOutput(int size)
createObjectDataOutput
in interface SerializationService
public BufferObjectDataOutput createObjectDataOutput()
createObjectDataOutput
in interface SerializationService
public final ClassLoader getClassLoader()
getClassLoader
in interface SerializationService
public final ManagedContext getManagedContext()
getManagedContext
in interface SerializationService
public ByteOrder getByteOrder()
getByteOrder
in interface SerializationService
public byte getVersion()
getVersion
in interface SerializationService
public void destroy()
destroy
in interface SerializationService
public final void register(Class type, Serializer serializer)
public final void registerGlobal(Serializer serializer)
public final void registerGlobal(Serializer serializer, boolean overrideJavaSerialization)
protected final int calculatePartitionHash(Object obj, PartitioningStrategy strategy)
protected final boolean safeRegister(Class type, Serializer serializer)
protected final boolean safeRegister(Class type, com.hazelcast.internal.serialization.impl.SerializerAdapter serializer)
protected final void registerConstant(Class type, Serializer serializer)
protected final void registerConstant(Class type, com.hazelcast.internal.serialization.impl.SerializerAdapter serializer)
protected final com.hazelcast.internal.serialization.impl.SerializerAdapter serializerFor(int typeId)
protected final com.hazelcast.internal.serialization.impl.SerializerAdapter serializerFor(Object object)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.