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 long |
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 long getPollingInterval(RemoteDirectory remoteDirectory)
public long getPollingInterval()
getPollingInterval
in interface DirectoryPoller
public void pollChanges(SynchronisationMode syncMode)
DirectoryPoller
pollChanges
in interface DirectoryPoller
syncMode
- 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()
DirectoryMonitor
getDirectoryID
in interface DirectoryMonitor
Copyright © 2020 Atlassian. All rights reserved.