Package org.eclipse.jdt.core.search
Interface IParallelizable
-
public interface IParallelizableThis interface can be used byIJavaSearchScope,JavaSearchParticipantandSearchPatternto mark implementors as eligible for parallel index search.- Since:
- 3.25
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidinitBeforeSearch(IProgressMonitor monitor)Initialize all needed data before search is startedbooleanisParallelSearchSupported()Answerstrueif the current instance supports parallel index searchstatic booleanisParallelSearchSupported(Object o)Checks if the given object implements this interface and also returnstrueforisParallelSearchSupported().
-
-
-
Method Detail
-
isParallelSearchSupported
boolean isParallelSearchSupported()
Answerstrueif the current instance supports parallel index search- Returns:
- Returns
trueif the implementation is safe to be used in a parallel search.
-
initBeforeSearch
default void initBeforeSearch(IProgressMonitor monitor) throws JavaModelException
Initialize all needed data before search is started- Parameters:
monitor- non null progress callback- Throws:
JavaModelException
-
isParallelSearchSupported
static boolean isParallelSearchSupported(Object o)
Checks if the given object implements this interface and also returnstrueforisParallelSearchSupported().- Parameters:
o- The object that needs to be checked.nullvalue will result in returningfalse.- Returns:
trueif the given object can be used in parallel search.
-
-