- Type Parameters:
T - The type of the value held.
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AccumulatorEvent
public class SerializedValue<T>
extends Object
implements Serializable
This class is used to transfer (via serialization) objects whose classes are not available
in the system class loader. When those objects are deserialized without access to their
special class loader, the deserialization fails with a ClassNotFoundException.
To work around that issue, the SerializedValue serialized data immediately into a byte array.
When send through RPC or another service that uses serialization, the only the byte array is
transferred. The object is deserialized later (upon access) and requires the accessor to
provide the corresponding class loader.
- See Also:
- Serialized Form