public interface OptimizedMarshallable
All implementation must have the following:
Object
with name GG_CLASS_ID
. Ignite will reflectively initialize this field with
proper class ID during system startup.
GG_CLASS_ID
field from ggClassId()
method.
// For better performance consider implementing java.io.Externalizable interface. class ExampleMarshallable implements GridOptimizedMarshallable, Serializable { // Class ID field required by 'GridOptimizedMarshallable'. private static Object GG_CLASS_ID; ... @ public Object ggClassId() { return GG_CLASS_ID; } }
Note that for better performance you should also specify list of classes you
plan to serialize via OptimizedMarshaller.setClassNames(List)
method.
Modifier and Type | Field and Description |
---|---|
static String |
CLS_ID_FIELD_NAME |
static final String CLS_ID_FIELD_NAME
Object ggClassId()
GG_CLASS_ID
field.
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 16 2015