public interface GridOptimizedMarshallable
All implementation must have the following:
Object
with name GG_CLASS_ID. GridGain 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 GridOptimizedMarshaller.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.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014