Package org.teiid.dqp.internal.process
Class AbstractWorkItem
- java.lang.Object
-
- org.teiid.dqp.internal.process.AbstractWorkItem
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
RequestWorkItem
public abstract class AbstractWorkItem extends Object implements Runnable
Represents a task that performs work that may take more than one processing pass to complete. During processing the WorkItem may receive events asynchronously through the moreWork method.
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkItem()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
isDoneProcessing()
boolean
isProcessing()
void
moreWork()
protected void
moreWork(boolean ignoreDone)
protected void
pauseProcessing()
protected abstract void
process()
protected abstract void
resumeProcessing()
void
run()
abstract String
toString()
-
-
-
Method Detail
-
isProcessing
public boolean isProcessing()
-
moreWork
public void moreWork()
-
moreWork
protected void moreWork(boolean ignoreDone)
-
process
protected abstract void process()
-
pauseProcessing
protected void pauseProcessing()
-
resumeProcessing
protected abstract void resumeProcessing()
-
isDoneProcessing
protected abstract boolean isDoneProcessing()
-
-