org.apache.sling.fsprovider.internal
Class FileMonitor

java.lang.Object
  extended by java.util.TimerTask
      extended by org.apache.sling.fsprovider.internal.FileMonitor
All Implemented Interfaces:
Runnable

public class FileMonitor
extends TimerTask

This class is a monitor for the file system that periodically checks for changes.


Constructor Summary
FileMonitor(FsResourceProvider provider, long interval)
          Creates a new instance of this class.
 
Method Summary
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMonitor

public FileMonitor(FsResourceProvider provider,
                   long interval)
Creates a new instance of this class.

Parameters:
provider - The resource provider.
interval - The interval between executions of the task, in milliseconds.
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask
See Also:
TimerTask.run()


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.