This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 28475 - RequestProcessor support for long running cancelable tasks
Summary: RequestProcessor support for long running cancelable tasks
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2002-11-05 12:22 UTC by _ pkuzel
Modified: 2008-12-22 09:49 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2002-11-05 12:22:59 UTC
I miss at RP a method similar to
Thread.currentThread(). Namely:

/**
 * @return RP.Task hosting code that invoked this
 * method or <codE>null</codE> if it is not called
 * from RP.Task body.
 */
public static RequestProcessor.Task currentTask();

Even further I'd appreciate RequestProcessor.Task
enhancement:

/**
 * @return true if it was canceled after dispatching
 */
public boolean canceled();


or RequestProcessor enhancement:

/**
 * @return true if currently executing RP.Task
 * was canceled after dispatching. I.e. always false
 * for non RP threads.
 */
public static boolean canceled();
Comment 1 _ rkubacki 2007-01-05 12:38:14 UTC
UtilitiesAPI 6.3+ supports canceling of tasks and Thread.isInterrupted() can be
used to query the state.