public interface Checkpointed
Modifier and Type | Method and Description |
---|---|
CheckpointName |
getCheckpointName() |
void |
restoreFromCheckpoint(CheckpointInputStream input)
Restores state from a checkpoint.
|
void |
writeToCheckpoint(OutputStream output)
Writes a checkpoint of all state to the given output stream.
|
CheckpointName getCheckpointName()
void writeToCheckpoint(OutputStream output) throws IOException, InterruptedException
InterruptedException
if they get
interrupted while running.output
- the output stream to write toIOException
InterruptedException
void restoreFromCheckpoint(CheckpointInputStream input) throws IOException
input
- an input stream with checkpoint dataIOException
Copyright © 2023. All Rights Reserved.