Package org.apache.ignite.internal.util
Annotation Type SerializableTransient
-
@Retention(RUNTIME) @Target(TYPE) public @interface SerializableTransient
Marks class as it has transient fields that should be serialized. Annotated class must have method that returns list of transient fields that should be serialized.Works only for jobs. For other messages node version is not available.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description StringmethodNameName of the private static method that returns list of transient fields that should be serialized (String[]), and acceptsIgniteProductVersion, e.g.
-
-
-
Element Detail
-
methodName
String methodName
Name of the private static method that returns list of transient fields that should be serialized (String[]), and acceptsIgniteProductVersion, e.g.private static String[] fields(IgniteProductVersion ver){ return ver.compareTo("1.5.30") > 0 ? SERIALIZABLE_FIELDS : null; }On serialization version argument ver is receiver version and sender version on deserialization.
If it returns empty array or null all transient fields will be normally ignored.
- Returns:
- Name of the method.
-
-