Class FileChangedEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.scheduling.io.watch.event.FileChangedEvent
- All Implemented Interfaces:
Serializable
Event fired when a file that is being watched changes.
- Since:
- 1.1.0
- Author:
- graemerocher
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionFileChangedEvent
(@NonNull Path path, @NonNull WatchEventType eventType) Constructs a new file changed event.FileChangedEvent
(@NonNull Path path, WatchEvent.Kind eventType) Constructs a new file changed event. -
Method Summary
Modifier and TypeMethodDescriptionThe watch event type.getPath()
The path to the file / directory that changed.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
FileChangedEvent
Constructs a new file changed event.- Parameters:
path
- The patheventType
- The event type
-
FileChangedEvent
Constructs a new file changed event.- Parameters:
path
- The patheventType
- The event type
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getPath
The path to the file / directory that changed.- Returns:
- The path
-
getEventType
The watch event type.- Returns:
- The event type
-