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 PortableContext |
portableContext |
protected static final PartitioningStrategy EMPTY_PARTITIONING_STRATEGY
protected final ManagedContext managedContext
protected final PortableContext 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 final void writePortableHeader(ObjectDataOutput out, Data data) throws IOException
IOException
protected void writeDataInternal(ObjectDataOutput out, Data data) throws IOException
IOException
public final Data readData(ObjectDataInput in)
readData
in interface SerializationService
protected final byte[] readPortableHeader(ObjectDataInput in) throws IOException
IOException
public void disposeData(Data data)
disposeData
in interface SerializationService
protected RuntimeException handleException(Throwable e)
public final BufferObjectDataOutput pop()
pop
in interface SerializationService
public final void push(BufferObjectDataOutput out)
push
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 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 com.hazelcast.nio.serialization.SerializerAdapter createSerializerAdapter(Serializer serializer)
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 © 2014 Hazelcast, Inc.. All Rights Reserved.