Package com.google.common.jimfs
Class WatchServiceConfiguration
- java.lang.Object
-
- com.google.common.jimfs.WatchServiceConfiguration
-
- Direct Known Subclasses:
WatchServiceConfiguration.PollingConfig
public abstract class WatchServiceConfiguration extends java.lang.Object
Configuration for theWatchService
implementation used by a file system.- Since:
- 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
WatchServiceConfiguration.PollingConfig
Implementation forpolling(long, java.util.concurrent.TimeUnit)
.
-
Field Summary
Fields Modifier and Type Field Description (package private) static WatchServiceConfiguration
DEFAULT
The default configuration that's used if the user doesn't provide anything more specific.
-
Constructor Summary
Constructors Constructor Description WatchServiceConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract AbstractWatchService
newWatchService(FileSystemView view, PathService pathService)
Creates a newAbstractWatchService
implementation.static WatchServiceConfiguration
polling(long interval, java.util.concurrent.TimeUnit timeUnit)
Returns a configuration for aWatchService
that polls watched directories for changes everyinterval
of the giventimeUnit
(e.g.
-
-
-
Field Detail
-
DEFAULT
static final WatchServiceConfiguration DEFAULT
The default configuration that's used if the user doesn't provide anything more specific.
-
-
Method Detail
-
polling
public static WatchServiceConfiguration polling(long interval, java.util.concurrent.TimeUnit timeUnit)
Returns a configuration for aWatchService
that polls watched directories for changes everyinterval
of the giventimeUnit
(e.g. every 5seconds
).
-
newWatchService
abstract AbstractWatchService newWatchService(FileSystemView view, PathService pathService)
Creates a newAbstractWatchService
implementation.
-
-