Java org.apache.commons.io.monitor FileAlterationMonitor fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.io.monitor FileAlterationMonitor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.io.monitor FileAlterationMonitor.

The text is from its open source code.

Constructor

FileAlterationMonitor(long interval)
Construct a monitor with the specified interval.
FileAlterationMonitor(long interval, FileAlterationObserver... observers)
Construct a monitor with the specified interval and set of observers.
FileAlterationMonitor()
Construct a monitor with a default interval of 10 seconds.

Method

voidaddObserver(final FileAlterationObserver observer)
Add a file system observer to this monitor.
IterablegetObservers()
Returns the set of FileAlterationObserver registered with this monitor.
voidsetThreadFactory(ThreadFactory threadFactory)
Set the thread factory.
voidstart()
Start monitoring.
voidstop()
Stop monitoring.