|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdevimpl.audit.util.Task
public abstract class Task
An abstract task executed by a SwingExecutor
. A concrete task must
override its execute(java.lang.Object)
method to execute itself, and must override
its commit(java.lang.Object)
method to commit its work.
For better responsiveness, a concrete task should also override its
cancelExecute()
and/or cancelCommit()
methods if
execute
or commit
are potentially long running and
can be cancelled.
Finally, a task which holds resources between executions should override
its close()
method to release those resources.
Constructor Summary | |
---|---|
Task()
|
Method Summary | |
---|---|
void |
cancelCommit()
Cancels the current commit. |
void |
cancelExecute()
Cancels the current execution. |
void |
close()
Closes the task. |
abstract void |
commit(java.lang.Object output)
Commits the results of executing this task. |
abstract java.lang.Object |
execute(java.lang.Object input)
Executes this task. |
abstract java.lang.String |
getName()
Gets the name of this task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Task()
Method Detail |
---|
public abstract java.lang.Object execute(java.lang.Object input)
input
- input data for this execution of this task.
public void cancelExecute()
Task
implementation does nothing.
public abstract void commit(java.lang.Object output)
output
- output data to be committed for and execution of this task.public void cancelCommit()
Task
implementation
does nothing.
public void close()
Task
implementation does nothing.
public abstract java.lang.String getName()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |