public static final class Invoker.Background extends Invoker
Invoker.Background, Invoker.BackgroundThread, Invoker.EDTDisposable.Parent| Constructor and Description |
|---|
Background(Disposable parent)
Deprecated.
|
Background(Disposable parent,
boolean useReadAction)
|
Background(Disposable parent,
int maxThreads)
Deprecated.
|
Background(Disposable parent,
ThreeState useReadAction)
|
Background(Disposable parent,
ThreeState useReadAction,
int maxThreads)
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
boolean |
isValidThread()
Returns
true if the current thread allows to process a task. |
compute, computeLater, computeLater, forBackgroundPoolWithReadAction, forBackgroundThreadWithoutReadAction, forBackgroundThreadWithReadAction, forEventDispatchThread, getTaskCount, invoke, invokeLater, invokeLater, runOrInvokeLater, toString@Deprecated public Background(Disposable parent)
Invoker.forBackgroundThreadWithReadAction(com.intellij.openapi.Disposable) insteadparent - a disposable parent object@Deprecated public Background(Disposable parent, int maxThreads)
Invoker.forBackgroundPoolWithReadAction(com.intellij.openapi.Disposable) insteadparent - a disposable parent objectmaxThreads - the number of threads used for parallel calculation,
where 1 guarantees sequential calculation,
which allows not to use additional synchronization@Deprecated public Background(Disposable parent, boolean useReadAction)
Invoker.forBackgroundThreadWithReadAction(com.intellij.openapi.Disposable) or Invoker.forBackgroundThreadWithoutReadAction(com.intellij.openapi.Disposable) insteadparent - a disposable parent objectuseReadAction - true to run user tasks as read actions with write action priority,
false to run user tasks without read locks@Deprecated public Background(Disposable parent, ThreeState useReadAction)
Invoker.forBackgroundThreadWithReadAction(com.intellij.openapi.Disposable) or Invoker.forBackgroundThreadWithoutReadAction(com.intellij.openapi.Disposable) insteadparent - a disposable parent objectuseReadAction - YES to run user tasks as read actions with write action priority,
NO to run user tasks without read locks,
UNSURE does not guarantee that read action is allowed@Deprecated public Background(Disposable parent, ThreeState useReadAction, int maxThreads)
Invoker.forBackgroundThreadWithReadAction(com.intellij.openapi.Disposable) or Invoker.forBackgroundThreadWithoutReadAction(com.intellij.openapi.Disposable) insteadparent - a disposable parent objectuseReadAction - YES to run user tasks as read actions with write action priority,
NO to run user tasks without read locks,
UNSURE does not guarantee that read action is allowedmaxThreads - the number of threads used for parallel calculation,
where 1 guarantees sequential calculation,
which allows not to use additional synchronizationpublic void dispose()
Disposabledispose in interface Disposabledispose in class Invokerpublic boolean isValidThread()
Invokertrue if the current thread allows to process a task.isValidThread in class Invokertrue if the current thread is valid, or false otherwise