public abstract class WatchServiceConfiguration extends Object
WatchService implementation used by a file system.| Modifier and Type | Method and Description |
|---|---|
static WatchServiceConfiguration |
polling(long interval,
TimeUnit timeUnit)
Returns a configuration for a
WatchService that polls watched directories for changes
every interval of the given timeUnit (e.g. |
public static WatchServiceConfiguration polling(long interval, TimeUnit timeUnit)
WatchService that polls watched directories for changes
every interval of the given timeUnit (e.g. every 5
seconds).Copyright © 2013–2017 Google Inc.. All rights reserved.