Interface SnapshotStateRepository
public interface SnapshotStateRepository
Repository used by
FileSystemWatcher
to save file/directory snapshots across
restarts.- Since:
- 2.4.0
- Author:
- Phillip Webb
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SnapshotStateRepository
A No-opSnapshotStateRepository
that does not save state.static final SnapshotStateRepository
ASnapshotStateRepository
that uses a static instance to keep state across restarts. -
Method Summary
-
Field Details
-
NONE
A No-opSnapshotStateRepository
that does not save state. -
STATIC
ASnapshotStateRepository
that uses a static instance to keep state across restarts.
-
-
Method Details
-
save
Save the given state in the repository.- Parameters:
state
- the state to save
-
restore
Object restore()Restore any previously saved state.- Returns:
- the previously saved state or
null
-