public class PathWatcher.PathWatchEvent extends Object
Represents a file event. Reported to registered listeners.
| 构造器和说明 |
|---|
PathWatchEvent(Path path,
PathWatcher.PathWatchEventType type,
PathWatcher.Config config) |
PathWatchEvent(Path path,
WatchEvent<Path> event,
PathWatcher.Config config) |
public PathWatchEvent(Path path, PathWatcher.PathWatchEventType type, PathWatcher.Config config)
public PathWatchEvent(Path path, WatchEvent<Path> event, PathWatcher.Config config)
public PathWatcher.Config getConfig()
public boolean isQuiet(long now,
long quietTime)
public long toQuietCheck(long now,
long quietTime)
public void modified()
public Path getPath()
public PathWatcher.PathWatchEventType getType()
Copyright © 2022. All rights reserved.