public class DefaultReplicatedIndexManager extends Object implements ReplicatedIndexManager
| Constructor and Description |
|---|
DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore,
TaskManager taskManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
deIndexComment(WithIdAndVersion commentWithVersion) |
void |
deIndexIssue(WithIdAndVersion issueWithVersion)
Removes the specified issues from the replicated index (we only need the ids for deindexing).
|
void |
deIndexProject(Project project) |
void |
deIndexSharedEntity(SharedEntity entity)
Deindexes the shared entity in the replicated index.
|
void |
deIndexWorklog(WithIdAndVersion worklogWithVersion) |
void |
indexSharedEntity(SharedEntity entity)
Reindexes the shared entity in the replicated index.
|
void |
onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent) |
void |
onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent) |
void |
reindexComments(Collection<? extends WithIdAndVersion> comments)
Reindexes the set of provided comments in the replicated index.
|
void |
reindexIssues(Collection<? extends WithIdAndVersion> issues)
Reindexes the set of provided issues in the replicated index.
|
void |
reindexProject(Project project) |
void |
reindexWorklogs(Collection<? extends WithIdAndVersion> worklogs)
Reindexes the set of provided worklogs in the replicated index.
|
public DefaultReplicatedIndexManager(OfBizReplicatedIndexOperationStore ofBizReplicatedIndexOperationStore, TaskManager taskManager)
public void reindexIssues(@Nonnull Collection<? extends WithIdAndVersion> issues)
reindexIssues in interface ReplicatedIndexManagerissues - an Collection of issues to be reindexedpublic void reindexComments(Collection<? extends WithIdAndVersion> comments)
reindexComments in interface ReplicatedIndexManagercomments - A collection of WithIdAndVersion representing comments to reindexpublic void reindexWorklogs(Collection<? extends WithIdAndVersion> worklogs)
reindexWorklogs in interface ReplicatedIndexManagerworklogs - A collection of WithIdAndVersion representing worklogs to reindexpublic void deIndexIssue(WithIdAndVersion issueWithVersion)
deIndexIssue in interface ReplicatedIndexManagerissueWithVersion - WithIds for the Issues to mark as deleted.public void deIndexComment(WithIdAndVersion commentWithVersion)
deIndexComment in interface ReplicatedIndexManagerpublic void deIndexWorklog(WithIdAndVersion worklogWithVersion)
deIndexWorklog in interface ReplicatedIndexManagerpublic void reindexProject(Project project)
reindexProject in interface ReplicatedIndexManagerpublic void deIndexProject(Project project)
deIndexProject in interface ReplicatedIndexManagerpublic void indexSharedEntity(SharedEntity entity)
indexSharedEntity in interface ReplicatedIndexManagerentity - the SharedEntity to be reindexedpublic void deIndexSharedEntity(SharedEntity entity)
deIndexSharedEntity in interface ReplicatedIndexManagerentity - the SharedEntity to be removed@EventListener public void onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent)
@EventListener public void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)
Copyright © 2002-2022 Atlassian. All Rights Reserved.