CheckpointSerializationContext

Parameters to checkpoint serialization and deserialization.

Properties

Link copied to clipboard

User defined custom serializers for use in checkpoint serialization.

Link copied to clipboard

The class loader to use for deserialization.

Link copied to clipboard

If non-null, apply this encoding (typically compression) when serializing.

Link copied to clipboard

A whitelist that determines (mostly for security purposes) whether a particular encoding may be used when deserializing.

Link copied to clipboard

Duplicate references to the same object preserved in the wire format and when deserialized when this is true, otherwise they appear as new copies of the object.

Link copied to clipboard
abstract val properties: Map<Any, Any>

A map of any addition properties specific to the particular use case.

Link copied to clipboard

A whitelist that contains (mostly for security purposes) which classes can be serialized and deserialized.

Functions

Link copied to clipboard

A shallow copy of this context but with the given custom serializers.

Link copied to clipboard

Helper method to return a new context based on this context with the deserialization class loader changed.

Link copied to clipboard

A shallow copy of this context but with the given (possibly null) encoding.

Link copied to clipboard

A shallow copy of this context but with the given encoding whitelist.

Link copied to clipboard

Helper method to return a new context based on this context with object references disabled.

Link copied to clipboard
abstract fun withProperty(property: Any, value: Any): CheckpointSerializationContext

Helper method to return a new context based on this context with the property added.

Link copied to clipboard

Helper method to return a new context based on this context with the given class specifically whitelisted.