SynchronisableDirectory
get their monitors added, updated and removed
automatically.@Deprecated public interface DirectoryMonitorManager
Modifier and Type | Method and Description |
---|---|
void |
addMonitor(RemoteDirectory directory)
Deprecated.
Adds a monitor to a particular directory.
|
boolean |
hasMonitor(long directoryID)
Deprecated.
Determines whether a directory is currently being monitored.
|
boolean |
removeMonitor(long directoryID)
Deprecated.
Removes a monitor from a monitored directory.
|
void addMonitor(RemoteDirectory directory) throws DirectoryInstantiationException, DirectoryMonitorCreationException, DirectoryMonitorRegistrationException, DirectoryMonitorAlreadyRegisteredException
directory
- directory to monitor.DirectoryInstantiationException
- if the raw remote directory cannot be instantiated.DirectoryMonitorCreationException
- if there was an error creating a monitor for the directory.DirectoryMonitorRegistrationException
- if there was an error registering the monitor.DirectoryMonitorAlreadyRegisteredException
- hasMonitor(directoryID) returns true.boolean removeMonitor(long directoryID) throws DirectoryMonitorUnregistrationException
directoryID
- directory ID.true
if a monitor was removed.DirectoryMonitorUnregistrationException
- if there was an error removing the monitor.boolean hasMonitor(long directoryID)
directoryID
- directory ID.true
if an only if the directory is being monitored.Copyright © 2020 Atlassian. All rights reserved.