Uses of Class
engineering.swat.watch.Watch
-
-
Uses of Watch in engineering.swat.watch
Methods in engineering.swat.watch that return Watch Modifier and Type Method Description static WatchWatch. build(Path path, WatchScope scope)Watch a path for updates, optionally also get events for its children/descendantsWatchWatch. on(WatchEventListener listener)Convenience variant ofon(Consumer), which allows you to only respond to certain eventsWatchWatch. on(Consumer<WatchEvent> eventHandler)Callback that gets executed for every event.WatchWatch. onOverflow(Approximation whichFiles)Optionally configure which regular files/directories in the scope of the watch an approximation of synthetic events (of kindsWatchEvent.Kind.CREATED,WatchEvent.Kind.MODIFIED, and/orWatchEvent.Kind.DELETED) should be issued when an overflow event happens.WatchWatch. withExecutor(Executor callbackHandler)Optionally configure the executor in which theon(Consumer)callbacks are scheduled.
-