Package com.google.common.jimfs
Class WatchServiceConfiguration
java.lang.Object
com.google.common.jimfs.WatchServiceConfiguration
- Direct Known Subclasses:
WatchServiceConfiguration.PollingConfig
Configuration for the
WatchService
implementation used by a file system.- Since:
- 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Implementation forpolling(long, java.util.concurrent.TimeUnit)
. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final WatchServiceConfiguration
The default configuration that's used if the user doesn't provide anything more specific. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract AbstractWatchService
newWatchService
(FileSystemView view, PathService pathService) Creates a newAbstractWatchService
implementation.static WatchServiceConfiguration
Returns a configuration for aWatchService
that polls watched directories for changes everyinterval
of the giventimeUnit
(e.g.
-
Field Details
-
DEFAULT
The default configuration that's used if the user doesn't provide anything more specific.
-
-
Constructor Details
-
WatchServiceConfiguration
WatchServiceConfiguration()
-
-
Method Details
-
polling
Returns a configuration for aWatchService
that polls watched directories for changes everyinterval
of the giventimeUnit
(e.g. every 5seconds
). -
newWatchService
Creates a newAbstractWatchService
implementation.
-