public class IlvThreadedTaskProcessor extends Object
IlvThreadedTaskProcessor.ThreadedTask
instances and execute them in a dedicated thread.Modifier and Type | Class and Description |
---|---|
static interface |
IlvThreadedTaskProcessor.ThreadedTask
Interface that any task object must implement to be managed by a
IlvThreadedTaskProcessor |
Modifier and Type | Method and Description |
---|---|
void |
cancel(IlvThreadedTaskProcessor.ThreadedTask task)
Cancels a task that has been registered with this
IlvThreadedTaskProcessor . |
static IlvThreadedTaskProcessor |
getTaskProcessor()
Returns the unique instance of
IlvThreadedTaskProcessor . |
void |
register(IlvThreadedTaskProcessor.ThreadedTask task)
Registers a new task to be executed by this
IlvThreadedTaskProcessor . |
public static IlvThreadedTaskProcessor getTaskProcessor()
IlvThreadedTaskProcessor
.IlvThreadedTaskProcessor
singletonpublic void register(IlvThreadedTaskProcessor.ThreadedTask task)
IlvThreadedTaskProcessor
.task
- the task to registerpublic void cancel(IlvThreadedTaskProcessor.ThreadedTask task)
IlvThreadedTaskProcessor
.task
- the task to cancel© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.