From caac88274c4a749c59136cc8241b371047c0150e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 13 Nov 2020 13:04:52 -0800 Subject: [PATCH] Updated Filer Change Data Capture (markdown) --- Filer-Change-Data-Capture.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Filer-Change-Data-Capture.md b/Filer-Change-Data-Capture.md index bb83ab0..1f60663 100644 --- a/Filer-Change-Data-Capture.md +++ b/Filer-Change-Data-Capture.md @@ -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 | | -------| -------| -------| -------| -------|