Interface DirectorySynchroniser
- All Known Implementing Classes:
DirectorySynchroniserImpl
public interface DirectorySynchroniser
An object that synchronises a
SynchronisableDirectory with a cache.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisSynchronising(long directoryId) Returns whether the directory is currently synchronising.voidsynchronise(SynchronisableDirectory synchronisableDirectory, SynchronisationMode mode) Executes a synchronisation in the current thread.
-
Method Details
-
synchronise
void synchronise(SynchronisableDirectory synchronisableDirectory, SynchronisationMode mode) throws DirectoryNotFoundException, OperationFailedException Executes a synchronisation in the current thread. If the directory is not active, then the method will return silently.- Parameters:
synchronisableDirectory- directory to synchronise.mode- synchronisation mode.- Throws:
DirectoryNotFoundExceptionOperationFailedException
-
isSynchronising
Returns whether the directory is currently synchronising.- Parameters:
directoryId- ID of the directory- Returns:
- true if the directory is current synchronising, otherwise false.
- Throws:
DirectoryNotFoundException- if the directory could not be found
-