public interface SnapshotStateRepository
FileSystemWatcher
to save file/directory snapshots across
restarts.Modifier and Type | Field and Description |
---|---|
static SnapshotStateRepository |
NONE
A No-op
SnapshotStateRepository that does not save state. |
static SnapshotStateRepository |
STATIC
A
SnapshotStateRepository that uses a static instance to keep state across
restarts. |
Modifier and Type | Method and Description |
---|---|
Object |
restore()
Restore any previously saved state.
|
void |
save(Object state)
Save the given state in the repository.
|
static final SnapshotStateRepository NONE
SnapshotStateRepository
that does not save state.static final SnapshotStateRepository STATIC
SnapshotStateRepository
that uses a static instance to keep state across
restarts.