public class DataSourceMerger extends Thread
DataElements of many DataSources and store them into one DataSink.Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
DataSourceMerger() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(DataSource source)
Adds a
DataSource in the DataSourceMerger. |
void |
finishedAddingSources()
This method have to been invoked in order to denote that no more
DataSources will be appended in the DataSourceMerger. |
void |
run() |
void |
setSink(DataSink sink)
Sets the common DataSink.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void run()
run in interface Runnablerun in class ThreadThread.run()public void finishedAddingSources()
DataSources will be appended in the DataSourceMerger.public boolean add(DataSource source)
DataSource in the DataSourceMerger.source - The DataSource which will be added.DataSource appended in the List successfully.public void setSink(DataSink sink)
sink - The common DataSink.Copyright © 2014. All Rights Reserved.