com.atlassian.crowd.directory
Class DbCachingDirectoryPoller

java.lang.Object
  extended by com.atlassian.crowd.directory.DbCachingDirectoryPoller
All Implemented Interfaces:
DirectoryMonitor, DirectoryPoller

public class DbCachingDirectoryPoller
extends java.lang.Object
implements DirectoryPoller

A Directory poller for the DbCachingRemoteDirectory.


Field Summary
 
Fields inherited from interface com.atlassian.crowd.directory.monitor.poller.DirectoryPoller
DEFAULT_CACHE_SYNCHRONISE_INTERVAL
 
Constructor Summary
DbCachingDirectoryPoller(DirectorySynchroniser directorySynchroniser, SynchronisableDirectory remoteDirectory)
          Constructs a new DbCachingDirectoryPoller with the correct instance of RemoteDirectory.
 
Method Summary
 long getDirectoryID()
           
 long getPollingInterval()
           
 void pollChanges(SynchronisationMode syncMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbCachingDirectoryPoller

public DbCachingDirectoryPoller(DirectorySynchroniser directorySynchroniser,
                                SynchronisableDirectory remoteDirectory)
Constructs a new DbCachingDirectoryPoller with the correct instance of RemoteDirectory. This is safe because if the RemoteDirectory is re-created the DirectoryPoller is discarded and a new one is created.

Parameters:
directorySynchroniser - DirectorySynchroniser
remoteDirectory - RemoteDirectory
Method Detail

getPollingInterval

public long getPollingInterval()
Specified by:
getPollingInterval in interface DirectoryPoller

pollChanges

public void pollChanges(SynchronisationMode syncMode)
Specified by:
pollChanges in interface DirectoryPoller

getDirectoryID

public long getDirectoryID()
Specified by:
getDirectoryID in interface DirectoryMonitor


Copyright © 2012 Atlassian. All Rights Reserved.