K
- type of the backend keys.public class FullSnapshotAsyncWriter<K> extends Object implements SnapshotStrategy.SnapshotResultSupplier<KeyedStateHandle>
FullSnapshotResources
.Constructor and Description |
---|
FullSnapshotAsyncWriter(SnapshotType snapshotType,
SupplierWithException<CheckpointStreamWithResultProvider,Exception> checkpointStreamSupplier,
FullSnapshotResources<K> snapshotResources) |
Modifier and Type | Method and Description |
---|---|
SnapshotResult<KeyedStateHandle> |
get(CloseableRegistry snapshotCloseableRegistry)
Performs the asynchronous part of a checkpoint and returns the snapshot result.
|
public FullSnapshotAsyncWriter(@Nonnull SnapshotType snapshotType, @Nonnull SupplierWithException<CheckpointStreamWithResultProvider,Exception> checkpointStreamSupplier, @Nonnull FullSnapshotResources<K> snapshotResources)
public SnapshotResult<KeyedStateHandle> get(CloseableRegistry snapshotCloseableRegistry) throws Exception
SnapshotStrategy.SnapshotResultSupplier
get
in interface SnapshotStrategy.SnapshotResultSupplier<KeyedStateHandle>
snapshotCloseableRegistry
- A registry for io tasks to close on cancel.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.