T - Savepoint type to serialize.public interface SavepointSerializer<T extends Savepoint>
Savepoint instances.
This serializer is used to read/write a savepoint via Checkpoints.
Version-specific serializers are accessed via the SavepointSerializers helper.
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(DataInputStream dis,
ClassLoader userCodeClassLoader)
Deserializes a savepoint from an input stream.
|
void |
serialize(T savepoint,
DataOutputStream dos)
Serializes a savepoint to an output stream.
|
void serialize(T savepoint, DataOutputStream dos) throws IOException
savepoint - Savepoint to serializedos - Output stream to serialize the savepoint toIOException - Serialization failures are forwardedT deserialize(DataInputStream dis, ClassLoader userCodeClassLoader) throws IOException
dis - Input stream to deserialize savepoint fromuserCodeClassLoader - the user code class loaderIOException - Serialization failures are forwardedCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.