com.hazelcast.nio.serialization
public class SerializationServiceImpl extends Object implements SerializationService
Modifier and Type | Field and Description |
---|---|
protected static PartitioningStrategy |
EMPTY_PARTITIONING_STRATEGY |
protected PartitioningStrategy |
globalPartitioningStrategy |
protected InputOutputFactory |
inputOutputFactory |
protected ManagedContext |
managedContext |
protected com.hazelcast.nio.serialization.PortableContextImpl |
portableContext |
protected static final PartitioningStrategy EMPTY_PARTITIONING_STRATEGY
protected final ManagedContext managedContext
protected final com.hazelcast.nio.serialization.PortableContextImpl portableContext
protected final InputOutputFactory inputOutputFactory
protected final PartitioningStrategy globalPartitioningStrategy
public final Data toData(Object obj)
toData
in interface SerializationService
public final Data toData(Object obj, PartitioningStrategy strategy)
toData
in interface SerializationService
protected final int calculatePartitionHash(Object obj, PartitioningStrategy strategy)
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 final void writeData(ObjectDataOutput out, Data data)
writeData
in interface SerializationService
protected void writeDataInternal(ObjectDataOutput out, Data data) throws IOException
IOException
public Data readData(ObjectDataInput input)
readData
in interface SerializationService
public void disposeData(Data data)
disposeData
in interface SerializationService
protected RuntimeException handleException(Throwable e)
protected final BufferObjectDataOutput pop()
protected final void push(BufferObjectDataOutput out)
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 final ObjectDataOutputStream createObjectDataOutputStream(OutputStream out)
createObjectDataOutputStream
in interface SerializationService
public final ObjectDataInputStream createObjectDataInputStream(InputStream in)
createObjectDataInputStream
in interface SerializationService
public final void register(Class type, Serializer serializer)
register
in interface SerializationService
public final void registerGlobal(Serializer serializer)
registerGlobal
in interface SerializationService
protected final com.hazelcast.nio.serialization.SerializerAdapter serializerFor(Class type)
protected final com.hazelcast.nio.serialization.SerializerAdapter lookupSerializer(Class type)
protected final com.hazelcast.nio.serialization.SerializerAdapter serializerFor(int typeId)
public PortableContext getPortableContext()
getPortableContext
in interface SerializationService
public final PortableReader createPortableReader(Data data) throws IOException
createPortableReader
in interface SerializationService
IOException
public void destroy()
destroy
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 boolean isActive()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.