public final class SuspendStatus extends Object
UserTask, ParserResultTask
is in progress.
The instance of the SuspendStatus can be obtained from
Context.getSuspendStatus(). The infrastructure suspends indexing
automatically. The EmbeddingIndexers are suspended with a file granularity.
The CustomIndexers are suspended with a source root granularity.
This service can be used for more fine granularity suspending especially for
CustomIndexers.| Modifier and Type | Method and Description |
|---|---|
boolean |
isSuspended()
Checks if an indexing is suspended.
|
boolean |
isSuspendSupported()
Checks if a indexing task supports suspend.
|
void |
parkWhileSuspended()
Parks a current (caller) thread while an indexing is suspended.
|
public boolean isSuspendSupported()
public boolean isSuspended()
public void parkWhileSuspended()
throws InterruptedException
InterruptedException - if the caller is interrupted.