接口 SnapshotStateRepository
public interface SnapshotStateRepository
Repository used by
FileSystemWatcher
to save file/directory snapshots across
restarts.- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb
-
字段概要
字段修饰符和类型字段说明static final SnapshotStateRepository
A No-opSnapshotStateRepository
that does not save state.static final SnapshotStateRepository
ASnapshotStateRepository
that uses a static instance to keep state across restarts. -
方法概要
-
字段详细资料
-
NONE
A No-opSnapshotStateRepository
that does not save state. -
STATIC
ASnapshotStateRepository
that uses a static instance to keep state across restarts.
-
-
方法详细资料
-
save
Save the given state in the repository.- 参数:
state
- the state to save
-
restore
Object restore()Restore any previously saved state.- 返回:
- the previously saved state or
null
-