public abstract class AbstractFilterTask extends AbstractMessageTask
| Modifier and Type | Field and Description |
|---|---|
protected FilterStage[] |
arrayCurrentFilterStage_
FilterStages to process.
|
protected static FilterStage[] |
EMPTY_FILTERSTAGE
empty default value for field arrayCurrentFilterStage_.
|
logger_| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFilterTask(TaskFactory taskFactory,
TaskExecutor taskExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFilterStage(FilterStage s) |
protected void |
addFilterStage(java.util.List s) |
void |
clearFilterStageToBeProcessed()
clear the result of the previous run.
|
protected abstract void |
doFilter() |
void |
doWork()
Override this Method in Subclasses to do the "real work".
|
FilterStage[] |
getFilterStageToBeProcessed()
get the matching FilterStages of the previous run.
|
protected TaskFactory |
getTaskFactory() |
void |
handleTaskError(AbstractTask task,
java.lang.Exception error)
error handler method that will be invoked if an exception occurs during doWork.
|
protected boolean |
isFilterStageListEmpty() |
void |
reset()
Reset the Object to an initial state.
|
void |
schedule()
Schedule this Task on its default Executor for execution.
|
void |
setCurrentFilterStage(FilterStage[] currentFilterStage)
set the FilterStages for the next run.
|
checkInterrupt, copyMessage, dispose, getMessage, isRunnable, removeMessage, setMessagegetTaskExecutor, run, schedule, schedule, setTaskExecutorsetObjectPoolprotected static final FilterStage[] EMPTY_FILTERSTAGE
protected FilterStage[] arrayCurrentFilterStage_
protected AbstractFilterTask(TaskFactory taskFactory, TaskExecutor taskExecutor)
public final void doWork()
throws java.lang.InterruptedException
AbstractTaskdoWork in class AbstractTaskjava.lang.InterruptedExceptionprotected abstract void doFilter()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected TaskFactory getTaskFactory()
protected boolean isFilterStageListEmpty()
protected void addFilterStage(FilterStage s)
protected void addFilterStage(java.util.List s)
public void setCurrentFilterStage(FilterStage[] currentFilterStage)
public FilterStage[] getFilterStageToBeProcessed()
public void clearFilterStageToBeProcessed()
public void reset()
AbstractPoolablereset in class AbstractMessageTaskpublic void handleTaskError(AbstractTask task, java.lang.Exception error)
AbstractTasktask - the task that caused the error.error - the exception that was thrown.public void schedule()