@Test public void testNewWatcher() { assertThat(watcher.isOpen()).isTrue(); assertThat(watcher.isPolling()).isFalse(); }
@VisibleForTesting synchronized boolean isPolling() { return pollingFuture != null; }
PollingWatchService extends AbstractWatchService { @VisibleForTesting synchronized boolean isPolling() { return pollingFuture != null; } }
PollingWatchService extends AbstractWatchService { @VisibleForTesting synchronized boolean isPolling() { return pollingFuture != null; } PollingWatchService(
      FileSystemView view,
      PathService pathService,
      FileSystemState fileSystemState,
      long interval,
      TimeUnit timeUnit); }
PollingWatchService extends AbstractWatchService { @VisibleForTesting synchronized boolean isPolling() { return pollingFuture != null; } PollingWatchService(
      FileSystemView view,
      PathService pathService,
      FileSystemState fileSystemState,
      long interval,
      TimeUnit timeUnit); @Override Key register(Watchable watchable, Iterable<? extends WatchEvent.Kind<?>> eventTypes); @Override synchronized void cancelled(Key key); @Override void close(); }
PollingWatchService extends AbstractWatchService { @VisibleForTesting synchronized boolean isPolling() { return pollingFuture != null; } PollingWatchService(
      FileSystemView view,
      PathService pathService,
      FileSystemState fileSystemState,
      long interval,
      TimeUnit timeUnit); @Override Key register(Watchable watchable, Iterable<? extends WatchEvent.Kind<?>> eventTypes); @Override synchronized void cancelled(Key key); @Override void close();  }