Package com.indeed.util.io.checkpointer
Class FileBasedCheckpointer<T>
- java.lang.Object
-
- com.indeed.util.io.checkpointer.FileBasedCheckpointer<T>
-
- All Implemented Interfaces:
Checkpointer<T>
public class FileBasedCheckpointer<T> extends java.lang.Object implements Checkpointer<T>
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetCheckpoint()voidsetCheckpoint(T checkpoint)
-
-
-
Method Detail
-
getCheckpoint
public T getCheckpoint()
- Specified by:
getCheckpointin interfaceCheckpointer<T>
-
setCheckpoint
public void setCheckpoint(T checkpoint) throws java.io.IOException
- Specified by:
setCheckpointin interfaceCheckpointer<T>- Throws:
java.io.IOException
-
-