public interface CheckpointStreamFactory
Stream factories can be created from the CheckpointStorageAccess
through CheckpointStorageWorkerView.resolveCheckpointStorageLocation(long,
CheckpointStorageLocationReference)
.
Modifier and Type | Interface and Description |
---|---|
static class |
CheckpointStreamFactory.CheckpointStateOutputStream
A dedicated output stream that produces a
StreamStateHandle when closed. |
Modifier and Type | Method and Description |
---|---|
CheckpointStreamFactory.CheckpointStateOutputStream |
createCheckpointStateOutputStream(CheckpointedStateScope scope)
Creates an new
CheckpointStreamFactory.CheckpointStateOutputStream . |
CheckpointStreamFactory.CheckpointStateOutputStream createCheckpointStateOutputStream(CheckpointedStateScope scope) throws IOException
CheckpointStreamFactory.CheckpointStateOutputStream
. When the stream is closed, it returns a
state handle that can retrieve the state back.scope
- The state's scope, whether it is exclusive or shared.IOException
- Exceptions may occur while creating the stream and should be forwarded.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.