public class EventDispatcher extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected AgentLogger |
LOGGER
The logger.
|
| Constructor and Description |
|---|
EventDispatcher(Map<Path,List<WatchEventListener>> listeners)
Instantiates a new event dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(WatchEvent<Path> event,
Path path)
Adds the.
|
void |
run() |
void |
start()
Start.
|
void |
stop()
Stop.
|
protected AgentLogger LOGGER
public EventDispatcher(Map<Path,List<WatchEventListener>> listeners)
listeners - the listenerspublic void add(WatchEvent<Path> event, Path path)
event - the eventpath - the pathpublic void start()
public void stop()
throws InterruptedException
InterruptedException - the interrupted exceptionCopyright © 2018. All rights reserved.