| java.lang.Object org.jacorb.notification.util.AbstractPoolable org.jacorb.notification.engine.AbstractTask
All known Subclasses: org.jacorb.notification.engine.AbstractMessageTask, org.jacorb.notification.engine.PullFromSupplierTask,
AbstractTask | abstract public class AbstractTask extends AbstractPoolable implements Runnable,Schedulable(Code) | | author: Alphonse Bendt version: $Id: AbstractTask.java,v 1.17 2005/10/02 15:18:39 alphonse.bendt Exp $ |
Method Summary | |
protected void | checkInterrupt() | abstract public void | doWork() Override this Method in Subclasses to do the "real work". | protected TaskExecutor | getTaskExecutor() | abstract void | handleTaskError(AbstractTask task, Exception error) error handler method that will be invoked if an exception occurs during doWork. | protected boolean | isRunnable() | public void | run() run method invoked by TaskExecutor. | protected void | schedule(boolean directRunAllowed) schedule this Task for execution.
Parameters: directRunAllowed - true, if the task may be run in the calling thread. | protected void | schedule(TaskExecutor executor, boolean directRunAllowed) schedule this Task for execution.
Parameters: executor - TaskExecutor that should execute this Task Parameters: directRunAllowed - true, if the task may be run in the calling thread. | protected void | setTaskExecutor(TaskExecutor taskExecutor) |
doWork | abstract public void doWork() throws Exception(Code) | | Override this Method in Subclasses to do the "real work".
|
handleTaskError | abstract void handleTaskError(AbstractTask task, Exception error)(Code) | | error handler method that will be invoked if an exception occurs during doWork.
Parameters: task - the task that caused the error. Parameters: error - the exception that was thrown. |
isRunnable | protected boolean isRunnable()(Code) | | |
run | public void run()(Code) | | run method invoked by TaskExecutor.
|
schedule | protected void schedule(boolean directRunAllowed)(Code) | | schedule this Task for execution.
Parameters: directRunAllowed - true, if the task may be run in the calling thread. false, if the TaskExecutorshould be used. |
schedule | protected void schedule(TaskExecutor executor, boolean directRunAllowed)(Code) | | schedule this Task for execution.
Parameters: executor - TaskExecutor that should execute this Task Parameters: directRunAllowed - true, if the task may be run in the calling thread. false, if the TaskExecutorshould be used. |
Fields inherited from org.jacorb.notification.util.AbstractPoolable | final protected Logger logger_(Code)(Java Doc)
|
|
|