| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdevimpl.audit.util.SwingExecutor
public class SwingExecutor
A simple task executor. Tasks are executed sequentially in a single background thread and are committed in the event dispatch thread. Tasks can be scheduled to execute after a delay, and scheduled or executing tasks can be rescheduled or cancelled.
| Constructor Summary | |
|---|---|
SwingExecutor()
Creates an executor.  | 
|
| Method Summary | |
|---|---|
 void | 
cancel(Task task)
Cancels a scheduled or executing task.  | 
 void | 
cancelIfExecuting(Task task)
Cancels an executing task.  | 
 void | 
close(Task task)
Closes a task.  | 
 void | 
run()
Runs the execution thread.  | 
 void | 
schedule(Task task,
         java.lang.Object input)
Schedules a task to run immediately.  | 
 void | 
schedule(Task task,
         java.lang.Object input,
         long delay)
Schedules a task to run after a delay.  | 
 void | 
start()
Starts this executor, if it has not already been started.  | 
 void | 
stop()
Stops this executor and cancels all its tasks.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SwingExecutor()
start()
| Method Detail | 
|---|
public void start()
public void stop()
public void schedule(Task task,
                     java.lang.Object input)
task - The task to schedule.input - Input data for the task.
public void schedule(Task task,
                     java.lang.Object input,
                     long delay)
task - The task to run.input - Input data for the task.delay - The number of milliseconds after which to schedule the task.public void cancel(Task task)
task - The task to cancel.public void cancelIfExecuting(Task task)
task - The task to cancel.public void close(Task task)
task - public void run()
run in interface java.lang.Runnable
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||