- java.lang.Object
-
- eu.ess.xaos.core.util.io.DirectoryWatcher.DirectoryEvent
-
- Enclosing class:
- DirectoryWatcher
public static class DirectoryWatcher.DirectoryEvent extends Object
Contains the information about entry create, delete or modify occurred to a watched directory.- Author:
- claudio.rosati@esss.se
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<WatchEvent<?>>
getEvents()
Path
getWatchedPath()
boolean
wasReset()
-
-
-
Method Detail
-
getEvents
public List<WatchEvent<?>> getEvents()
- Returns:
- A
List
of theWatchEvent
s occurred to the watched path.
-
getWatchedPath
public Path getWatchedPath()
- Returns:
- The watched
Path
. It corresponds to what returned by theWatchKey.watchable()
method.
-
wasReset
public boolean wasReset()
- Returns:
true
if theWatchKey
that generated this event was successfully reset.
-
-