Note: These pages are being reviewed.
What APIs come with built-in background thread handling
A few APIs come with built in multi-threading - if you want your code to run on a background thread, you don’t have to do any special set up to do that.
Specifically they are
-
The Actions API - if you override
asynchronous
to return true (or don’t override it - for historical reasons this is the default), your action’sperformAction
method will run in the background -
The Nodes API - to compute node children that are expensive to create, use
ChildFactory
and specifytrue
as the boolean argument toChildren.create()
-
Various parsing APIs - for syntax highlighting languages and so forth - usually you just provide a task to do, and it will automatically call you in the background when a reparse is being done
-
QuickSearch API - searchers are typically called in background thread by infrastructure in SearchProvider.evaluate(…)
Apache Migration Information
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqThreadingBuiltIn , that was last modified by NetBeans user Dsimonek on 2009-12-03T15:38:48Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.