Class WatchFile

All Implemented Interfaces:
Future<Void>, Associator, Eligible

public class WatchFile extends Event<Void>
Registers a path to be watched with a FileSystemWatcher.
  • Constructor Details

    • WatchFile

      public WatchFile(Path path)
      Creates a new instance.
      Parameters:
      path - the file’s path
  • Method Details

    • path

      public Path path()
      Return’s the event’s path.
      Returns:
      the path