Class FilesystemAlterationMonitor

  • All Implemented Interfaces:
    java.lang.Runnable

    public final class FilesystemAlterationMonitor
    extends java.lang.Object
    implements java.lang.Runnable
    It's a runnable that spawns of a monitoring thread triggering the the observers and managing the their listeners.
    Author:
    tcurdt
    • Constructor Detail

      • FilesystemAlterationMonitor

        public FilesystemAlterationMonitor()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • setInterval

        public void setInterval​(long pDelay)
        Set the delay between calls to the observers.
        Parameters:
        pDelay - the delay in milliseconds (default if not set 3000 ms)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable