@PublicApi public class

ReindexRequest

extends ReindexRequestBase
java.lang.Object
   ↳ com.atlassian.jira.index.request.ReindexRequestBase
     ↳ com.atlassian.jira.index.request.ReindexRequest

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

A reindex request with components.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.index.request.ReindexRequestBase
Public Constructors
ReindexRequest(Long id, ReindexRequestType type, long requestTime, Long startTime, Long completionTime, String executionNodeId, ReindexStatus status, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities)
ReindexRequest(ReindexRequestType type, long requestTime, Long startTime, Long completionTime, String executionNodeId, ReindexStatus status, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities, List<ReindexRequest> sources)
ReindexRequest(ReindexRequestBase base, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities)
Protected Constructors
ReindexRequest(Long id, ReindexRequestType type, long requestTime, Long startTime, Long completionTime, String executionNodeId, ReindexStatus status, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities, List<ReindexRequest> sources)
Public Methods
boolean equals(Object o)
@Nonnull Set<AffectedIndex> getAffectedIndexes()
@Nonnull Set<Long> getAllRequestIds()
Returns the request ID from this request and all source children recursively.
@Nonnull Set<SharedEntityType> getSharedEntities()
@Nonnull List<ReindexRequest> getSources()
int hashCode()
@Nonnull ReindexRequest withSources(Collection<ReindexRequest> additionalSourcces)
[Expand]
Inherited Methods
From class com.atlassian.jira.index.request.ReindexRequestBase
From class java.lang.Object

Public Constructors

public ReindexRequest (Long id, ReindexRequestType type, long requestTime, Long startTime, Long completionTime, String executionNodeId, ReindexStatus status, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities)

public ReindexRequest (ReindexRequestType type, long requestTime, Long startTime, Long completionTime, String executionNodeId, ReindexStatus status, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities, List<ReindexRequest> sources)

public ReindexRequest (ReindexRequestBase base, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities)

Protected Constructors

protected ReindexRequest (Long id, ReindexRequestType type, long requestTime, Long startTime, Long completionTime, String executionNodeId, ReindexStatus status, Set<AffectedIndex> affectedIndexes, Set<SharedEntityType> sharedEntities, List<ReindexRequest> sources)

Public Methods

public boolean equals (Object o)

@Nonnull public Set<AffectedIndex> getAffectedIndexes ()

@Nonnull public Set<Long> getAllRequestIds ()

Returns the request ID from this request and all source children recursively. Null IDs are not included.

Returns
  • a set of request IDs.

@Nonnull public Set<SharedEntityType> getSharedEntities ()

@Nonnull public List<ReindexRequest> getSources ()

Returns
  • the sources of this request if this reindex request was generated from other requests, such as via a coalescer.

public int hashCode ()

@Nonnull public ReindexRequest withSources (Collection<ReindexRequest> additionalSourcces)