Class WatchFilesRequest
java.lang.Object
com.linecorp.centraldogma.client.WatchFilesRequest
Prepares to send a
CentralDogma.watchRepository(String, String, Revision, PathPattern, long, boolean)
request to the Central Dogma repository.-
Method Summary
Modifier and TypeMethodDescriptionerrorOnEntryNotFound(boolean errorOnEntryNotFound) Sets whether to throw anEntryNotFoundExceptionif the watch target does not exist.start()Waits for the files matched by thePathPatternto be changed since theRevision.HEAD.Waits for the files matched by thePathPatternto be changed since thelastKnownRevision.timeoutMillis(long timeoutMillis)
-
Method Details
-
timeout
-
timeoutMillis
-
errorOnEntryNotFound
Sets whether to throw anEntryNotFoundExceptionif the watch target does not exist. -
start
Waits for the files matched by thePathPatternto be changed since theRevision.HEAD. If no changes were made within thetimeoutMillis(long), the returnedCompletableFuturewill be completed withnull.- Returns:
- the latest known
Revisionwhich contains the changes for the matched files.nullif the files were not changed fortimeoutMillismilliseconds since the invocation of this method.EntryNotFoundExceptionis raised if the target does not exist.
-
start
Waits for the files matched by thePathPatternto be changed since thelastKnownRevision. If no changes were made within thetimeoutMillis(long), the returnedCompletableFuturewill be completed withnull.- Returns:
- the latest known
Revisionwhich contains the changes for the matched files.nullif the files were not changed fortimeoutMillismilliseconds since the invocation of this method.EntryNotFoundExceptionis raised if the target does not exist.
-