com.hazelcast.nio.serialization
Class ClassDefinitionSerializer

java.lang.Object
  extended by com.hazelcast.nio.serialization.ClassDefinitionSerializer

public class ClassDefinitionSerializer
extends Object

Serializes/De-serializes ClassDefinitions to/from buffer and streams.

Read/write from/to buffer methods are not thread safe.


Constructor Summary
ClassDefinitionSerializer(Data data, PortableContext context)
           
 
Method Summary
 boolean read(ByteBuffer source)
          Reads ClassDefinition from a buffer.
 boolean write(ByteBuffer destination)
          Writes a ClassDefinition to a buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDefinitionSerializer

public ClassDefinitionSerializer(Data data,
                                 PortableContext context)
Method Detail

write

public boolean write(ByteBuffer destination)
Writes a ClassDefinition to a buffer.

Parameters:
destination - buffer to write ClassDefinition
Returns:
true if ClassDefinition is fully written to the buffer, false otherwise

read

public boolean read(ByteBuffer source)
Reads ClassDefinition from a buffer.

Parameters:
source - buffer to read ClassDefinition from
Returns:
true if ClassDefinition is fully read from the buffer, false otherwise


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