Top Description Methods
org.xnio

public Interface FileSystemWatcher

extends Closeable
Known Direct Implementers
org.xnio.PollingFileSystemWatcher
Imports
java.io.Closeable, .File

File system watcher service. This watcher can be used to receive notifications about a specific path.
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public void
unwatchPath(final File
the path
file
,
final FileChangeCallback
the callback
callback
)

Stop watching a path.

public void
watchPath(final File
The path to watch
file
,
final FileChangeCallback
The callback
callback
)

Watch the given path recursively, and invoke the callback when a change is made.

Inherited from java.io.Closeable:
close

Method Detail

unwatchPathback to summary
public void unwatchPath(final File file, final FileChangeCallback callback)

Stop watching a path.

Parameters
file:File

the path

callback:FileChangeCallback

the callback

watchPathback to summary
public void watchPath(final File file, final FileChangeCallback callback)

Watch the given path recursively, and invoke the callback when a change is made.

Parameters
file:File

The path to watch

callback:FileChangeCallback

The callback