@Retention(value=RUNTIME) @Target(value=TYPE) public @interface SerializableTransient
Works only for jobs. For other messages node version is not available.
| Modifier and Type | Required Element and Description |
|---|---|
String |
methodName
Name of the private static method that returns list of transient fields
that should be serialized (String[]), and accepts itself (before serialization)
and
IgniteProductVersion, e.g. |
public abstract String methodName
IgniteProductVersion, e.g.
private static String[] fields(Object self, IgniteProductVersion ver){
return ver.compareTo("1.5.30") > 0 ? SERIALIZABLE_FIELDS : null;
}
On serialization version argument ver is null, on deserialization - self is null.
If it returns empty array or null all transient fields will be normally ignored.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017