Interface FileEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
LockFileEvent
- All Known Implementing Classes:
FileEventImpl,LockFileEventImpl
public interface FileEvent extends Event
An event that is produced to indicate the presence of a file or a sub-directory. This may be a file or a directory that has been been created in a special folder.
These events are usually not serialisable.To allow for event handling chains for the very same event, some issues need to be respected when handling a
PathEvent:- The file must not be changed unless the event handler is consuming and indicates this consumption when handling the event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BasicFileAttributesgetFileAttributes()Gets the basic file attributes of the path of this event.PathgetPath()Gets the path that caused this event.-
Methods inherited from interface de.aristaflow.adept2.model.events.Event
getCreationTime, getEventManager, getEventType, getID, getSourceID, getSourceType
-
-
-
-
Method Detail
-
getPath
Path getPath()
Gets the path that caused this event.- Returns:
- The path that caused this event.
-
getFileAttributes
BasicFileAttributes getFileAttributes()
Gets the basic file attributes of the path of this event.- Returns:
- The basic file attributes of the path of this event.
-
-