Class FileChangeEvent
- java.lang.Object
-
- io.quarkus.deployment.dev.filesystem.watch.FileChangeEvent
-
public class FileChangeEvent extends Object
The event object that is fired when a file system change is detected.- See Also:
WatchServiceFileSystemWatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileChangeEvent.Type
Watched file event types.
-
Constructor Summary
Constructors Constructor Description FileChangeEvent(File file, FileChangeEvent.Type type)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
Get the file which was being watched.FileChangeEvent.Type
getType()
Get the type of event.
-
-
-
Constructor Detail
-
FileChangeEvent
public FileChangeEvent(File file, FileChangeEvent.Type type)
Construct a new instance.- Parameters:
file
- the file which is being watchedtype
- the type of event that was encountered
-
-
Method Detail
-
getFile
public File getFile()
Get the file which was being watched.- Returns:
- the file which was being watched
-
getType
public FileChangeEvent.Type getType()
Get the type of event.- Returns:
- the type of event
-
-