|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.patterns.listdata.util.AsyncDataLoaderRunnable
public abstract class AsyncDataLoaderRunnable
New Runnable object which allows to process multiple items at the same time. The processor of the data has to specify it's version (status). If the version changes before or while the processing of the data is in progress the processing will stop.
| Field Summary | |
|---|---|
protected int |
m_iOriginalObjectVersion
Value uniquely identifying the original state of the object by which the data should be processed. |
protected java.util.List |
m_lstData
List of data which should be added to the table |
| Constructor Summary | |
|---|---|
AsyncDataLoaderRunnable(java.util.List lstData,
int iOriginalObjectVersion)
Constructor |
|
| Method Summary | |
|---|---|
protected abstract int |
getCurrentObjectVersion()
This method has to be overriden to return the actual value of the version for object, which is processing the data. |
protected abstract void |
processItem(org.opensubsystems.core.data.DataObject dataToProcess)
Process new item from the list. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_iOriginalObjectVersion
protected java.util.List m_lstData
| Constructor Detail |
|---|
public AsyncDataLoaderRunnable(java.util.List lstData,
int iOriginalObjectVersion)
lstData - - list with already loaded dataiOriginalObjectVersion - - version of the object by which the data
should be processed. If the version of the object at the time when
the data are being processed is different from this version, then
the data will not be processed or the processing of the data stops.| Method Detail |
|---|
public final void run()
run in interface java.lang.Runnableprotected abstract void processItem(org.opensubsystems.core.data.DataObject dataToProcess)
dataToProcess - - data item to processprotected abstract int getCurrentObjectVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||