@FunctionalInterface
public interface DirectoryChangeListener
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isWatching()
The watcher will stop watching after this method returns false.
|
static DirectoryChangeListener |
of(DirectoryChangeListener... listeners) |
void |
onEvent(DirectoryChangeEvent event) |
default void |
onException(java.lang.Exception e)
A handler for uncaught exceptions.
|
default void |
onIdle(int count) |
static DirectoryChangeListener of(DirectoryChangeListener... listeners)
void onEvent(DirectoryChangeEvent event) throws java.io.IOException
java.io.IOExceptiondefault boolean isWatching()
default void onIdle(int count)
default void onException(java.lang.Exception e)