com.hazelcast.nio.serialization
Interface PortableContext


public interface PortableContext


Field Summary
static int HEADER_CLASS_OFFSET
           
static int HEADER_ENTRY_LENGTH
           
static int HEADER_FACTORY_OFFSET
           
static int HEADER_VERSION_OFFSET
           
 
Method Summary
 ClassDefinition createClassDefinition(int factoryId, byte[] binary)
           
 ByteOrder getByteOrder()
           
 ClassDefinition[] getClassDefinitions(Data data)
           
 int getClassVersion(int factoryId, int classId)
           
 FieldDefinition getFieldDefinition(ClassDefinition cd, String name)
           
 ManagedContext getManagedContext()
           
 int getVersion()
           
 boolean hasClassDefinition(Data data)
           
 ClassDefinition lookupClassDefinition(Data data)
           
 ClassDefinition lookupClassDefinition(int factoryId, int classId, int version)
           
 ClassDefinition lookupOrRegisterClassDefinition(Portable portable)
           
 ClassDefinition registerClassDefinition(ClassDefinition cd)
           
 void setClassVersion(int factoryId, int classId, int version)
           
 

Field Detail

HEADER_ENTRY_LENGTH

static final int HEADER_ENTRY_LENGTH
See Also:
Constant Field Values

HEADER_FACTORY_OFFSET

static final int HEADER_FACTORY_OFFSET
See Also:
Constant Field Values

HEADER_CLASS_OFFSET

static final int HEADER_CLASS_OFFSET
See Also:
Constant Field Values

HEADER_VERSION_OFFSET

static final int HEADER_VERSION_OFFSET
See Also:
Constant Field Values
Method Detail

getVersion

int getVersion()

getClassVersion

int getClassVersion(int factoryId,
                    int classId)

setClassVersion

void setClassVersion(int factoryId,
                     int classId,
                     int version)

lookupClassDefinition

ClassDefinition lookupClassDefinition(int factoryId,
                                      int classId,
                                      int version)

lookupClassDefinition

ClassDefinition lookupClassDefinition(Data data)

hasClassDefinition

boolean hasClassDefinition(Data data)

getClassDefinitions

ClassDefinition[] getClassDefinitions(Data data)

createClassDefinition

ClassDefinition createClassDefinition(int factoryId,
                                      byte[] binary)
                                      throws IOException
Throws:
IOException

registerClassDefinition

ClassDefinition registerClassDefinition(ClassDefinition cd)

lookupOrRegisterClassDefinition

ClassDefinition lookupOrRegisterClassDefinition(Portable portable)
                                                throws IOException
Throws:
IOException

getFieldDefinition

FieldDefinition getFieldDefinition(ClassDefinition cd,
                                   String name)

getManagedContext

ManagedContext getManagedContext()

getByteOrder

ByteOrder getByteOrder()


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