|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DirectoryListenerManager
Manager for adding and removing DirectoryPollers. Implementations are used in a thread-safe manner by the DirectoryMonitorManager.
| Method Summary | |
|---|---|
void |
addListener(DirectoryListener listener)
Registers a configured DirectoryListener and starts listening. |
boolean |
hasListener(long directoryID)
Checks whether a DirectoryListener is currently listening. |
void |
removeAllListeners()
Attempts to unregister all registered listeners. |
boolean |
removeListener(long directoryID)
Unregisters the DirectoryListener and stops listening. |
| Method Detail |
|---|
void addListener(DirectoryListener listener)
throws DirectoryMonitorRegistrationException
listener - configured DirectoryListener.
DirectoryMonitorRegistrationException - error starting listener.boolean hasListener(long directoryID)
directoryID - directory ID.
true if and only if a listener has been successfully added.
boolean removeListener(long directoryID)
throws DirectoryMonitorUnregistrationException
directoryID - directory ID.
true if and only if a listener existed
and was removed from listening to given directory.
DirectoryMonitorUnregistrationExceptionvoid removeAllListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||