public class WorkPlan extends Object
Constructor and Description |
---|
WorkPlan(ExtendedSearchIntegrator extendedIntegrator) |
Modifier and Type | Method and Description |
---|---|
void |
addWork(Work work)
Adds a work to be performed as part of the final plan.
|
void |
clear()
Removes all scheduled work
|
List<LuceneWork> |
getPlannedLuceneWork() |
void |
processContainedInAndPrepareExecution()
Makes sure that all additional work needed because of containedIn
is added to the work plan.
|
<T> void |
recurseContainedIn(T value,
ContainedInRecursionContext context,
String tenantId)
Used for recursive processing of containedIn
|
int |
size()
Returns an approximation of the amount of work in the queue.
|
public WorkPlan(ExtendedSearchIntegrator extendedIntegrator)
public void addWork(Work work)
work
- The work instance to add to the work planpublic void clear()
public int size()
Environment.QUEUEINGPROCESSOR_BATCHSIZE
public void processContainedInAndPrepareExecution()
public <T> void recurseContainedIn(T value, ContainedInRecursionContext context, String tenantId)
T
- the type of the entityvalue
- the entity to be processedcontext
- the validator for the depth constraintstenantId
- the tenant identifier. It can be null.public List<LuceneWork> getPlannedLuceneWork()
LuceneWork
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved