Modifier and Type | Method and Description |
---|---|
static WatchServiceConfiguration |
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. |
Modifier and Type | Method and Description |
---|---|
Configuration.Builder |
Configuration.Builder.setWatchServiceConfiguration(WatchServiceConfiguration config)
Sets the configuration that
WatchService instances created by the file system
should use. |
Copyright © 2013–2016 Google Inc.. All rights reserved.