You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Optionally configure the executor in which the {@link #onEvent(Consumer)} callbacks are scheduled.
108
+
* Optionally configure the executor in which the {@link #on(Consumer)} callbacks are scheduled.
109
109
* If not defined, every task will be scheduled on the {@link java.util.concurrent.ForkJoinPool#commonPool()}.
110
110
* @param callbackHandler worker pool to use
111
111
* @return this for optional method chaining
@@ -119,7 +119,7 @@ public Watcher withExecutor(Executor callbackHandler) {
119
119
* Start watch the path for events.
120
120
* @return a subscription for the watch, when closed, new events will stop being registered to the worker pool.
121
121
* @throws IOException in case the starting of the watcher caused an underlying IO exception
122
-
* @throws IllegalStateException the watchers is not configured correctly (for example, missing {@link #onEvent(Consumer)}, or a watcher is started twice)
122
+
* @throws IllegalStateException the watchers is not configured correctly (for example, missing {@link #on(Consumer)}, or a watcher is started twice)
0 commit comments