public interface CheckpointableTask
Modifier and Type | Method and Description |
---|---|
void |
initSnapshot(Snapshot snapshot)
This method could be used to predefine packers
|
default void |
onCheckpointPropagated(Snapshot snapshot)
This method will be called immediately after task report it's version to the checkpoint master
|
default void |
onSnapshotPersisted(Snapshot snapshot)
This method will be called when task persist it's local state to the store
|
void |
restoreSnapshot(Snapshot snapshot)
This method will be called when task is initializing
|
void |
takeSnapshot(Snapshot snapshot)
Snapshot should be updated in this method with new values |
void restoreSnapshot(Snapshot snapshot)
void takeSnapshot(Snapshot snapshot)
Snapshot
should be updated in this method with new valuesvoid initSnapshot(Snapshot snapshot)
default void onSnapshotPersisted(Snapshot snapshot)
default void onCheckpointPropagated(Snapshot snapshot)