Uses of Class
com.google.common.jimfs.AbstractWatchService.Key
-
-
Uses of AbstractWatchService.Key in com.google.common.jimfs
Fields in com.google.common.jimfs with type parameters of type AbstractWatchService.Key Modifier and Type Field Description private java.util.concurrent.ConcurrentMap<AbstractWatchService.Key,PollingWatchService.Snapshot>
PollingWatchService. snapshots
Map of keys to the most recent directory snapshot for each key.Methods in com.google.common.jimfs that return AbstractWatchService.Key Modifier and Type Method Description AbstractWatchService.Key
AbstractWatchService. register(java.nio.file.Watchable watchable, java.lang.Iterable<? extends java.nio.file.WatchEvent.Kind<?>> eventTypes)
Registers the given watchable with this service, returning a new watch key for it.AbstractWatchService.Key
PollingWatchService. register(java.nio.file.Watchable watchable, java.lang.Iterable<? extends java.nio.file.WatchEvent.Kind<?>> eventTypes)
Methods in com.google.common.jimfs with parameters of type AbstractWatchService.Key Modifier and Type Method Description void
AbstractWatchService. cancelled(AbstractWatchService.Key key)
Called when the given key is cancelled.void
PollingWatchService. cancelled(AbstractWatchService.Key key)
(package private) void
AbstractWatchService. enqueue(AbstractWatchService.Key key)
Enqueues the given key if the watch service is open; does nothing otherwise.(package private) boolean
PollingWatchService.Snapshot. postChanges(PollingWatchService.Snapshot newState, AbstractWatchService.Key key)
Posts events to the given key based on the kinds of events it subscribes to and what events have occurred between this state and the given new state.
-