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 ReplicatedIndexManager
issues
- an Collection
of issues to be reindexedpublic void reindexComments(Collection<? extends WithIdAndVersion> comments)
reindexComments
in interface ReplicatedIndexManager
comments
- A collection of WithIdAndVersion
representing comments to reindexpublic void reindexWorklogs(Collection<? extends WithIdAndVersion> worklogs)
reindexWorklogs
in interface ReplicatedIndexManager
worklogs
- A collection of WithIdAndVersion
representing worklogs to reindexpublic void deIndexIssue(WithIdAndVersion issueWithVersion)
deIndexIssue
in interface ReplicatedIndexManager
issueWithVersion
- WithId
s for the Issues to mark as deleted.public void deIndexComment(WithIdAndVersion commentWithVersion)
deIndexComment
in interface ReplicatedIndexManager
public void deIndexWorklog(WithIdAndVersion worklogWithVersion)
deIndexWorklog
in interface ReplicatedIndexManager
public void reindexProject(Project project)
reindexProject
in interface ReplicatedIndexManager
public void deIndexProject(Project project)
deIndexProject
in interface ReplicatedIndexManager
public void indexSharedEntity(SharedEntity entity)
indexSharedEntity
in interface ReplicatedIndexManager
entity
- the SharedEntity
to be reindexedpublic void deIndexSharedEntity(SharedEntity entity)
deIndexSharedEntity
in interface ReplicatedIndexManager
entity
- the SharedEntity
to be removed@EventListener public void onReindexAllStarted(ReindexAllStartedEvent reindexAllStartedEvent)
@EventListener public void onReindexAllCompleted(ReindexAllCompletedEvent reindexAllCompletedEvent)
Copyright © 2002-2021 Atlassian. All Rights Reserved.