Package org.apache.flink.runtime.state
Class FullSnapshotAsyncWriter<K>
java.lang.Object
org.apache.flink.runtime.state.FullSnapshotAsyncWriter<K>
- Type Parameters:
K- type of the backend keys.
- All Implemented Interfaces:
SnapshotStrategy.SnapshotResultSupplier<KeyedStateHandle>
public class FullSnapshotAsyncWriter<K>
extends Object
implements SnapshotStrategy.SnapshotResultSupplier<KeyedStateHandle>
An asynchronous writer that can write a full snapshot/savepoint from a
FullSnapshotResources.-
Constructor Summary
ConstructorsConstructorDescriptionFullSnapshotAsyncWriter(SnapshotType snapshotType, org.apache.flink.util.function.SupplierWithException<CheckpointStreamWithResultProvider, Exception> checkpointStreamSupplier, FullSnapshotResources<K> snapshotResources) -
Method Summary
Modifier and TypeMethodDescriptionget(org.apache.flink.core.fs.CloseableRegistry snapshotCloseableRegistry) Performs the asynchronous part of a checkpoint and returns the snapshot result.
-
Constructor Details
-
FullSnapshotAsyncWriter
public FullSnapshotAsyncWriter(@Nonnull SnapshotType snapshotType, @Nonnull org.apache.flink.util.function.SupplierWithException<CheckpointStreamWithResultProvider, Exception> checkpointStreamSupplier, @Nonnull FullSnapshotResources<K> snapshotResources)
-
-
Method Details
-
get
public SnapshotResult<KeyedStateHandle> get(org.apache.flink.core.fs.CloseableRegistry snapshotCloseableRegistry) throws Exception Description copied from interface:SnapshotStrategy.SnapshotResultSupplierPerforms the asynchronous part of a checkpoint and returns the snapshot result.- Specified by:
getin interfaceSnapshotStrategy.SnapshotResultSupplier<K>- Parameters:
snapshotCloseableRegistry- A registry for io tasks to close on cancel.- Returns:
- A snapshot result
- Throws:
Exception
-