com.hazelcast.nio.serialization
Class SerializationServiceImpl

java.lang.Object
  extended by com.hazelcast.nio.serialization.SerializationServiceImpl
All Implemented Interfaces:
SerializationService

public final class SerializationServiceImpl
extends Object
implements SerializationService


Method Summary
 com.hazelcast.nio.BufferObjectDataInput createObjectDataInput(byte[] data)
           
 com.hazelcast.nio.BufferObjectDataInput createObjectDataInput(Data data)
           
 ObjectDataInputStream createObjectDataInputStream(InputStream in)
           
 ObjectDataInputStream createObjectDataInputStream(InputStream in, ByteOrder order)
           
 com.hazelcast.nio.BufferObjectDataOutput createObjectDataOutput(int size)
           
 ObjectDataOutputStream createObjectDataOutputStream(OutputStream out)
           
 ObjectDataOutputStream createObjectDataOutputStream(OutputStream out, ByteOrder order)
           
 PortableReader createPortableReader(Data data)
           
 void destroy()
           
 ClassLoader getClassLoader()
           
 ManagedContext getManagedContext()
           
 SerializationContext getSerializationContext()
           
 Object readObject(com.hazelcast.nio.ObjectDataInput in)
           
 void register(Class type, Serializer serializer)
           
 void registerGlobal(Serializer serializer)
           
 com.hazelcast.nio.serialization.SerializerAdapter serializerFor(Class type)
           
 com.hazelcast.nio.serialization.SerializerAdapter serializerFor(int typeId)
           
 Data toData(Object obj)
           
 Data toData(Object obj, PartitioningStrategy strategy)
           
<T> T
toObject(Object object)
           
 void writeObject(com.hazelcast.nio.ObjectDataOutput out, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toData

public Data toData(Object obj)
Specified by:
toData in interface SerializationService

toData

public Data toData(Object obj,
                   PartitioningStrategy strategy)
Specified by:
toData in interface SerializationService

toObject

public <T> T toObject(Object object)
Specified by:
toObject in interface SerializationService

writeObject

public void writeObject(com.hazelcast.nio.ObjectDataOutput out,
                        Object obj)
Specified by:
writeObject in interface SerializationService

readObject

public Object readObject(com.hazelcast.nio.ObjectDataInput in)
Specified by:
readObject in interface SerializationService

createObjectDataInput

public com.hazelcast.nio.BufferObjectDataInput createObjectDataInput(byte[] data)
Specified by:
createObjectDataInput in interface SerializationService

createObjectDataInput

public com.hazelcast.nio.BufferObjectDataInput createObjectDataInput(Data data)
Specified by:
createObjectDataInput in interface SerializationService

createObjectDataOutput

public com.hazelcast.nio.BufferObjectDataOutput createObjectDataOutput(int size)
Specified by:
createObjectDataOutput in interface SerializationService

createObjectDataOutputStream

public ObjectDataOutputStream createObjectDataOutputStream(OutputStream out)
Specified by:
createObjectDataOutputStream in interface SerializationService

createObjectDataInputStream

public ObjectDataInputStream createObjectDataInputStream(InputStream in)
Specified by:
createObjectDataInputStream in interface SerializationService

createObjectDataOutputStream

public ObjectDataOutputStream createObjectDataOutputStream(OutputStream out,
                                                           ByteOrder order)
Specified by:
createObjectDataOutputStream in interface SerializationService

createObjectDataInputStream

public ObjectDataInputStream createObjectDataInputStream(InputStream in,
                                                         ByteOrder order)
Specified by:
createObjectDataInputStream in interface SerializationService

register

public void register(Class type,
                     Serializer serializer)
Specified by:
register in interface SerializationService

registerGlobal

public void registerGlobal(Serializer serializer)
Specified by:
registerGlobal in interface SerializationService

serializerFor

public com.hazelcast.nio.serialization.SerializerAdapter serializerFor(Class type)

serializerFor

public com.hazelcast.nio.serialization.SerializerAdapter serializerFor(int typeId)

getSerializationContext

public SerializationContext getSerializationContext()
Specified by:
getSerializationContext in interface SerializationService

createPortableReader

public PortableReader createPortableReader(Data data)
Specified by:
createPortableReader in interface SerializationService

destroy

public void destroy()

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface SerializationService

getManagedContext

public ManagedContext getManagedContext()
Specified by:
getManagedContext in interface SerializationService


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.