@PublicApi
public interface ReindexRequestService
| Modifier and Type | Method and Description |
|---|---|
ReindexRequest |
getReindexProgress(long requestId)
Reads progress of a reindex request.
|
Set<ReindexRequest> |
getReindexProgress(Set<Long> requestIds)
Reads progress of multiple reindex requests.
|
boolean |
isReindexRequested() |
Set<ReindexRequest> |
processRequests(Set<ReindexRequestType> reindexRequestTypes,
boolean runInBackground)
Processes any outstanding reindex requests asynchronously.
|
Set<ReindexRequest> |
processRequestsAndWait(Set<ReindexRequestType> reindexRequestTypes,
boolean runInBackground)
Processes any outstanding reindex requests and waits for them to finish.
|
ReindexRequest |
requestReindex(ReindexRequestType type,
Set<AffectedIndex> affectedIndexes,
Set<SharedEntityType> entityTypes)
Requests a reindex, adding a reindex request to the queue.
|
@Nonnull Set<ReindexRequest> processRequests(Set<ReindexRequestType> reindexRequestTypes, boolean runInBackground) throws PermissionException
reindexRequestTypes - The request types to process.runInBackground - PermissionException@Nonnull Set<ReindexRequest> processRequestsAndWait(Set<ReindexRequestType> reindexRequestTypes, boolean runInBackground) throws PermissionException
reindexRequestTypes - The request types to process.runInBackground - PermissionException@Nonnull ReindexRequest requestReindex(@Nonnull ReindexRequestType type, @Nonnull Set<AffectedIndex> affectedIndexes, @Nonnull Set<SharedEntityType> entityTypes)
type - whether reindex is immediate or delayed.affectedIndexes - the indexes to regenerate.entityTypes - the entity types whose indexes are to be regenerated.@Nullable ReindexRequest getReindexProgress(long requestId)
requestId - the ID of the reindex request.null if no request with the specified ID exists.@Nonnull Set<ReindexRequest> getReindexProgress(@Nonnull Set<Long> requestIds)
requestIds - a set of reindex request IDs.requestIds that was not
found will not have a corresponding element in the return set.boolean isReindexRequested()
Copyright © 2002-2021 Atlassian. All Rights Reserved.