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 classImplementation forpolling(long, TimeUnit). -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final WatchServiceConfigurationThe 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 AbstractWatchServicenewWatchService(FileSystemView view, PathService pathService) Creates a newAbstractWatchServiceimplementation.static WatchServiceConfigurationReturns a configuration for aWatchServicethat polls watched directories for changes everyintervalof 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 aWatchServicethat polls watched directories for changes everyintervalof the giventimeUnit(e.g. every 5seconds). -
newWatchService
Creates a newAbstractWatchServiceimplementation.
-