Class AtlassianSchedulerDirectoryPollerManager
java.lang.Object
com.atlassian.crowd.manager.directory.monitor.poller.AtlassianSchedulerDirectoryPollerManager
- All Implemented Interfaces:
DirectoryPollerManager
public class AtlassianSchedulerDirectoryPollerManager
extends Object
implements DirectoryPollerManager
Implementation of DirectoryPollerManager that uses Atlassian Scheduler
- Since:
- 2.8
-
Constructor Summary
ConstructorDescriptionAtlassianSchedulerDirectoryPollerManager
(com.atlassian.scheduler.SchedulerService schedulerService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
triggerPoll
(long directoryID, SynchronisationMode syncMode) Manually triggers the directory poller to immediately poll the directory and synchronise changes.
-
Constructor Details
-
AtlassianSchedulerDirectoryPollerManager
public AtlassianSchedulerDirectoryPollerManager(com.atlassian.scheduler.SchedulerService schedulerService)
-
-
Method Details
-
triggerPoll
Description copied from interface:DirectoryPollerManager
Manually triggers the directory poller to immediately poll the directory and synchronise changes. This can be used to asynchronously start a directory synchronisation using the underlying scheduler. If a manual poll is triggered while another poll is running, the manual poll will not queue (i.e. it will do nothing). You can check if a directory is currently synchronising by calling theDirectoryManager.isSynchronising(long)
. If the directory does not exist or has no poller associated with it, this method will do nothing.- Specified by:
triggerPoll
in interfaceDirectoryPollerManager
- Parameters:
directoryID
- directory ID.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.
-