@NotThreadSafe public class DirectorySynchroniserBarrier extends Object
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.
Constructor and Description |
---|
DirectorySynchroniserBarrier(com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory,
com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
com.atlassian.event.api.EventPublisher publisher) |
Modifier and Type | Method and Description |
---|---|
boolean |
await(long timeout,
TimeUnit unit) |
void |
onDirectoryFinished(com.atlassian.crowd.event.directory.RemoteDirectorySynchronisedEvent finished) |
public DirectorySynchroniserBarrier(com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory, com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, com.atlassian.event.api.EventPublisher publisher)
public boolean await(long timeout, TimeUnit unit)
@EventListener public void onDirectoryFinished(com.atlassian.crowd.event.directory.RemoteDirectorySynchronisedEvent finished)
Copyright © 2002-2024 Atlassian. All Rights Reserved.