@NotThreadSafe public class

DirectorySynchroniserBarrier

extends Object
java.lang.Object
   ↳ com.atlassian.jira.user.util.DirectorySynchroniserBarrier

Class Overview

Class that tries to wait for any "Crowd Embedded" synchronisations to finish. This class is *not* thread safe, only one thread may await on this class. NOTE: This is a complete hack. It does not work in all cases. It would be better if we could tell "Crowd Embedded" to shutdownAndWait be we can't currently so this is here to catch a majority of cases where this is a problem.

Summary

Public Constructors
DirectorySynchroniserBarrier(ApplicationFactory applicationFactory, CrowdDirectoryService crowdDirectoryService, EventPublisher publisher)
Public Methods
boolean await(long timeout, TimeUnit unit)
@EventListener void onDirectoryFinished(RemoteDirectorySynchronisedEvent finished)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DirectorySynchroniserBarrier (ApplicationFactory applicationFactory, CrowdDirectoryService crowdDirectoryService, EventPublisher publisher)

Public Methods

public boolean await (long timeout, TimeUnit unit)

@EventListener public void onDirectoryFinished (RemoteDirectorySynchronisedEvent finished)