Interface PushKeyFiles.Watch

Enclosing class:
PushKeyFiles

public static interface PushKeyFiles.Watch
Watches a key file for the owner of the watcher: the engine's PushFileWatcher on a server. Called once per file, after its first successful read.
Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    watch(Path file, Runnable onChange)
    Watches a file.
  • Method Details

    • watch

      void watch(Path file, Runnable onChange) throws IOException
      Watches a file.
      Parameters:
      file - The file, absolute and normalized.
      onChange - What to run when the file is created, modified or deleted.
      Throws:
      IOException - If the file cannot be watched.