public class DbCachingDirectoryPoller extends Object implements DirectoryPoller
DbCachingRemoteDirectory.DEFAULT_CACHE_SYNCHRONISE_INTERVAL| Constructor and Description |
|---|
DbCachingDirectoryPoller(DirectorySynchroniser directorySynchroniser,
SynchronisableDirectory remoteDirectory)
Constructs a new DbCachingDirectoryPoller with the correct instance of RemoteDirectory.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDirectoryID()
Returns the ID of the directory that
is being polled.
|
long |
getPollingInterval() |
static Duration |
getPollingInterval(RemoteDirectory remoteDirectory) |
void |
pollChanges(SynchronisationMode syncMode)
Polls the directory for mutations and synchronises accordingly.
|
public DbCachingDirectoryPoller(DirectorySynchroniser directorySynchroniser, SynchronisableDirectory remoteDirectory)
DirectoryPoller is discarded and a new one is created.directorySynchroniser - DirectorySynchroniserremoteDirectory - RemoteDirectorypublic static Duration getPollingInterval(RemoteDirectory remoteDirectory)
public long getPollingInterval()
getPollingInterval in interface DirectoryPollerpublic void pollChanges(SynchronisationMode syncMode)
DirectoryPollerpollChanges in interface DirectoryPollersyncMode - determines whether the poll only requests elements that have changed since a timestamp or if
it queries for the entire user base from the remote directory and determines changes locally.public long getDirectoryID()
DirectoryMonitorgetDirectoryID in interface DirectoryMonitorCopyright © 2021 Atlassian. All rights reserved.