接口 SnapshotStateRepository
public interface SnapshotStateRepository
Repository used by
FileSystemWatcher to save file/directory snapshots across
restarts.- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb
-
字段概要
字段修饰符和类型字段说明static final SnapshotStateRepositoryA No-opSnapshotStateRepositorythat does not save state.static final SnapshotStateRepositoryASnapshotStateRepositorythat uses a static instance to keep state across restarts. -
方法概要
-
字段详细资料
-
NONE
A No-opSnapshotStateRepositorythat does not save state. -
STATIC
ASnapshotStateRepositorythat 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
-