Package com.linecorp.centraldogma.client
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 anEntryNotFoundException
if the watch target does not exist.start()
Waits for the files matched by thePathPattern
to be changed since theRevision.HEAD
.Waits for the files matched by thePathPattern
to be changed since thelastKnownRevision
.timeoutMillis
(long timeoutMillis)
-
Method Details
-
timeout
-
timeoutMillis
-
errorOnEntryNotFound
Sets whether to throw anEntryNotFoundException
if the watch target does not exist. -
start
Waits for the files matched by thePathPattern
to be changed since theRevision.HEAD
. If no changes were made within thetimeoutMillis(long)
, the returnedCompletableFuture
will be completed withnull
.- Returns:
- the latest known
Revision
which contains the changes for the matched files.null
if the files were not changed fortimeoutMillis
milliseconds since the invocation of this method.EntryNotFoundException
is raised if the target does not exist.
-
start
Waits for the files matched by thePathPattern
to be changed since thelastKnownRevision
. If no changes were made within thetimeoutMillis(long)
, the returnedCompletableFuture
will be completed withnull
.- Returns:
- the latest known
Revision
which contains the changes for the matched files.null
if the files were not changed fortimeoutMillis
milliseconds since the invocation of this method.EntryNotFoundException
is raised if the target does not exist.
-