public class FileChangedEvent extends ApplicationEvent
FileWatchConfiguration,
Serialized Formsource| Constructor and Description |
|---|
FileChangedEvent(Path path,
WatchEvent.Kind eventType)
Constructs a new file changed event.
|
FileChangedEvent(Path path,
WatchEventType eventType)
Constructs a new file changed event.
|
| Modifier and Type | Method and Description |
|---|---|
WatchEventType |
getEventType()
The watch event type.
|
Path |
getPath()
The path to the file / directory that changed.
|
Path |
getSource() |
toStringpublic FileChangedEvent(@NonNull Path path, @NonNull WatchEventType eventType)
path - The patheventType - The event typepublic FileChangedEvent(@NonNull Path path, @NonNull WatchEvent.Kind eventType)
path - The patheventType - The event type@NonNull public Path getSource()
getSource in class EventObject@NonNull public Path getPath()
@NonNull public WatchEventType getEventType()