Updated Filer Change Data Capture (markdown)

Chris Lu 2020-11-13 13:04:52 -08:00
parent a1b1311df4
commit caac88274c

@ -6,6 +6,13 @@ Here is an example, in Java:
https://github.com/chrislusf/seaweedfs/blob/master/other/java/examples/src/main/java/com/seaweedfs/examples/WatchFiles.java
To subscribe the meta data changes:
| Parameter | Meaning |
| -- | -- |
| prefix | A path prefix. Watch any directory or file with this path prefix |
| clientName | A client name, just for logging |
| sinceNs | A timestamp in nano seconds. Watch changes from this timestamp. You can rewind the time. |
Basically there are four types of events to handle:
| Type | Directory | NewEntry | OldEntry | NewParentPath |
| -------| -------| -------| -------| -------|