S
- type of the returned state object that represents the result of the snapshot *
operation.@FunctionalInterface public static interface SnapshotStrategy.SnapshotResultSupplier<S extends StateObject>
SnapshotResult
with an access to a CloseableRegistry
for io
tasks that need to be closed when cancelling the async part of the checkpoint.Modifier and Type | Method and Description |
---|---|
SnapshotResult<S> |
get(CloseableRegistry snapshotCloseableRegistry)
Performs the asynchronous part of a checkpoint and returns the snapshot result.
|
SnapshotResult<S> get(CloseableRegistry snapshotCloseableRegistry) throws Exception
snapshotCloseableRegistry
- A registry for io tasks to close on cancel.Exception
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.