1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| package de.micromata.borgbutler.cache;
|
| /**
| * ,
| * PARSING - , DIRTY - , SAVED -
| */
| public enum CacheState {
| /**
| * On startup or directly after {@link AbstractCache#clear()} is called. (not yet read).
| */
| INITIAL,
| /**
| * Cache is been loaded (with borg command).
| */
| LOADING_FROM_BORG,
| /**
| * Cache is beeing loaded from filesystem.
| */
| LOADING_FROM_CACHE_FILE,
| /**
| * Modifications done but not yet written.
| */
| DIRTY,
| /**
| * Save to cache file is in progress.
| */
| SAVING,
| /**
| * Content has been written to file, no modifications done after. Cache file is up-to-date.
| */
| SAVED
|
| }
|
|