org.jacorb.notification.engine
public abstract class AbstractTask extends AbstractPoolable implements Runnable, Schedulable
Version: $Id: AbstractTask.java,v 1.17 2005/10/02 15:18:39 alphonse.bendt Exp $
| Method Summary | |
|---|---|
| protected void | checkInterrupt() |
| abstract void | doWork()
Override this Method in Subclasses to do the "real work". |
| protected TaskExecutor | getTaskExecutor() |
| protected boolean | isRunnable() |
| void | run()
run method invoked by TaskExecutor. |
| protected void | schedule(boolean directRunAllowed)
schedule this Task for execution.
|
| protected void | schedule(TaskExecutor executor, boolean directRunAllowed)
schedule this Task for execution.
|
| protected void | setTaskExecutor(TaskExecutor taskExecutor) |
Parameters: directRunAllowed true, if the task may be run in the calling thread. false, if the TaskExecutor should be used.
Parameters: executor TaskExecutor that should execute this Task directRunAllowed true, if the task may be run in the calling thread. false, if the TaskExecutor should be used.