mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Filer Change Data Capture (markdown)
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 |
|
||||
| -------| -------| -------| -------| -------|
|
||||
|
|
Loading…
Reference in a new issue