public class FileBasedCheckpointer<T> extends java.lang.Object implements Checkpointer<T>
| Constructor and Description |
|---|
FileBasedCheckpointer(java.io.File checkpointFile,
com.indeed.util.serialization.Stringifier<T> stringifier,
T defaultValue) |
FileBasedCheckpointer(java.nio.file.Path checkpointFilePath,
com.indeed.util.serialization.Stringifier<T> stringifier,
T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
getCheckpoint() |
void |
setCheckpoint(T checkpoint) |
public FileBasedCheckpointer(@Nonnull
java.io.File checkpointFile,
@Nonnull
com.indeed.util.serialization.Stringifier<T> stringifier,
@Nonnull
T defaultValue)
throws java.io.IOException
java.io.IOExceptionpublic T getCheckpoint()
getCheckpoint in interface Checkpointer<T>public void setCheckpoint(T checkpoint) throws java.io.IOException
setCheckpoint in interface Checkpointer<T>java.io.IOException