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